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 })