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

View File

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