Redirecting based on previous route? #1706
Unanswered
SteveDowsett
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You can set up an event listener using From there on, its a matter of reading the sessionStorage to get the previous URL and determine what you want to do with that. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey all, i have a route that id like to some how conditionally redirect to another if the page is being hit fresh, i.e not being navigated to as part of the usual flow and doesnt have a previous route.
How can i determine that? I was thinking the logic would need to go in the beforeLoad for the route, but not sure how i can check what the previous/from route is?
Beta Was this translation helpful? Give feedback.
All reactions