Closed AlexXanderGrib closed 4 months ago
A back button. Currently router.back() can navigate you to another site
Side note: I would never come back to your site ever again if it had behaviour like this (if I am understanding you correctly here). It's just not a nice practice.
A back button. Currently router.back() can navigate you to another site
Side note: I would never come back to your site ever again if it had behaviour like this (if I am understanding you correctly here). It's just not a nice practice.
No, you misunderstood, it's more app-like
You can be redirected from help article to /settings/security And it's more logical that back button redirects you to /settings, rather than to article you came from, especially if app is installed PWA
You can already write to history.state with history.replacestate in a router.aftereach hook to have this feature
What problem is this solving
router.back()
can navigate you to another siteProposed solution
canGoBack
or.go()
(.forward()
,.backward()
)Describe alternatives you've considered
history.state
propertyback
to determine this