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