Preserve the history when using AuthGuard? #965
vagrantrobbie
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to preserve the history when using AuthGuard? For example, I want to check if the user is logged in before allowing them to view content and if they aren't, then send them to register screen. Currently the whole navigation stack gets emptied so we lose the back button and the user can't return to the previous screen.
I can't hard code a back button in either because using Modular.to.pop() will result in an error as there is no route to return to.
I'd also like to direct the user back to the screen which launched the sing in screen.
Beta Was this translation helpful? Give feedback.
All reactions