-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
document.referrer will not be updated by addressbar #19
Comments
I am not expert on |
Example using Chromium:
This means, route changes on same domain will be tracked with Anyhow, We could override the property using https://stackoverflow.com/a/23434948, but on the other hand, the specification does only state navigation via link, Nevertheless, in the (cerebral) addressbar code i have found a variable named What do you think of that idea? |
@christianalfoni does that make sense? i can make a pull request, if you acknowledge. |
Hi,
First of, i am using cerebral router for navigation.
It would be neat, to access the referrer (previous visited url) from the current visited url.
use-case1: i want to return to the previous site after clicking the save-button on a settings page.
use-case2: i want to show a message after clicking the save-button on a settings page.
While this is possible by saving the current location to state before going to example.com/settings, it would be easier if the new location just knows, where i came from.
Using window.history.back() is not sufficient, because i only want to go back to the previous location in use-case1
Using document.referrer would be sufficient, but it is not possible, because navigation with the router will not change the document.referrer. Is this a desired behaviour?
The text was updated successfully, but these errors were encountered: