From 6f2e7a8b2327695048a9c8cf0090b4e6ecee629c Mon Sep 17 00:00:00 2001 From: Alexander Lichter Date: Wed, 20 Mar 2024 10:55:40 +0100 Subject: [PATCH] fix(nuxt): ignore `navigateTo` `open` option on server side (#26392) --- packages/nuxt/src/app/composables/router.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/nuxt/src/app/composables/router.ts b/packages/nuxt/src/app/composables/router.ts index a0c033d73d..0f2eac9811 100644 --- a/packages/nuxt/src/app/composables/router.ts +++ b/packages/nuxt/src/app/composables/router.ts @@ -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 })