fix(nuxt): fix router redirection on aliased pages (#4982)

This commit is contained in:
Julien Huang 2022-05-20 11:15:57 +02:00 committed by GitHub
parent 733c293901
commit 4e53af3e99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -184,6 +184,7 @@ export default defineNuxtPlugin(async (nuxtApp) => {
try {
await router.replace({
...router.resolve(initialURL),
name: undefined, // #4920, #$4982
force: true
})
} catch (error) {