I have a deeplink microflow set up that loads a page. I have restricted access to the deeplink to the User role in my application to force anonymous users to log in first before they can view the content. The "Allow Guests" flag on the deeplink is set to true so when I click on the link as an anon user it takes me to the login.html page.
So far so good. However when I complete the log in process the app is taking me back to the home page rather than taking the user straight to the target page that I want them to see.
If I set the "Allow Guests" flag to false then the behaviour works as expected but if I deploy to the cloud with that flag set to false the deeplink doesn't work at all.
What am I missing here?