We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent caed2f0 commit ecfdf4cCopy full SHA for ecfdf4c
docs/guide/auth.md
@@ -61,8 +61,8 @@ router.beforeEach(async (to) => {
61
path: '/login',
62
query: {
63
// we keep the current path in the query so we can redirect to it after login
64
- // with `router.push(route.query.redirectTo || '/')`
65
- redirectTo: to.fullPath,
+ // with `router.push(route.query.redirect || '/')`
+ redirect: to.fullPath,
66
},
67
}
68
@@ -84,8 +84,8 @@ onMounted(async () => {
84
const currentUser = await getCurrentUser()
85
if (currentUser) {
86
const to =
87
- route.query.redirectTo && typeof route.query.redirectTo === 'string'
88
- ? route.query.redirectTo
+ route.query.redirect && typeof route.query.redirect === 'string'
+ ? route.query.redirect
89
: '/'
90
91
router.push(to)
0 commit comments