fix(nuxt): ignore navigateTo open option on server side (#26392)

This commit is contained in:
Alexander Lichter 2024-03-20 10:55:40 +01:00 committed by GitHub
parent 4e6812d92c
commit 6f2e7a8b23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -135,10 +135,9 @@ export const navigateTo = (to: RouteLocationRaw | undefined | null, options?: Na
.join(', ')
open(toPath, target, features)
}
return Promise.resolve()
}
}
const isExternal = options?.external || hasProtocol(toPath, { acceptRelative: true })
if (isExternal) {