-
-
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 missingneeds RFCThis feature request needs to go through the RFC process to gather more informationThis feature request needs to go through the RFC process to gather more information
Description
It would be useful to detect if navigation comes from interaction within the app (router.push()
) or outside of it (history.back()
).
The API is still to be decided and should be the same on v4 and v3, probably something inside of the to
parameter of navigation guards
router.beforeEach((to, from, next) => {
to.navigation.type // 'pop' | 'push'
to.replace // true | false
to.navigation.direction // number
Related #1620
Elevista, lukef, catarinacepeda, amxmln, nicholas-ramsey and 22 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 missingneeds RFCThis feature request needs to go through the RFC process to gather more informationThis feature request needs to go through the RFC process to gather more information