Thou Blue
Thou Blue
Explore posts from servers
NNuxt
Created by Thou Blue on 6/11/2024 in #❓・help
How can i load same page for two separate urls?
Thanks @manniL / TheAlexLichter ,
///login.vue
definePageMeta({
middleware: 'guest',
alias: ['/login-google']
})

///middleware
if (fromUrl.includes('-google')) {
return navigateTo(to.path + '-google')
}
///login.vue
definePageMeta({
middleware: 'guest',
alias: ['/login-google']
})

///middleware
if (fromUrl.includes('-google')) {
return navigateTo(to.path + '-google')
}
5 replies