Skip to content

Commit

Permalink
fix(nuxt): ignore navigateTo open option on server side (#26392)
Browse files Browse the repository at this point in the history
  • Loading branch information
manniL committed Mar 20, 2024
1 parent 4e6812d commit 6f2e7a8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/nuxt/src/app/composables/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down

0 comments on commit 6f2e7a8

Please sign in to comment.