-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Open
Labels
feature requestgroup[current route information]Issues regarding current route information that is currently missingIssues regarding current route information that is currently missing
Description
There are times when it's useful to peek at what the previous page was. With normal page navigation, document.referrer
stores the previous URL, but the HTML5 History API doesn't update that value unfortunately. 😞 Would it be desirable to access the referrer on router.referrer
? The getter might look something like this:
return document.referrer || this.$router.internalHistory[0]
As you can see, this would also require keeping a stack of previous pages, maybe just 1 level deep by default. Later, perhaps an option could be added to specify the max stack height.
LinusBorg, Mavlarn, airyland, tianbaolin, boxsnake and 55 more
Metadata
Metadata
Assignees
Labels
feature requestgroup[current route information]Issues regarding current route information that is currently missingIssues regarding current route information that is currently missing