diff --git a/packages/nuxt/src/app/composables/router.ts b/packages/nuxt/src/app/composables/router.ts index 2373f61a726..d5a2d005570 100644 --- a/packages/nuxt/src/app/composables/router.ts +++ b/packages/nuxt/src/app/composables/router.ts @@ -60,7 +60,8 @@ export const navigateTo = (to: RouteLocationRaw, options: NavigateToOptions = {} if (!to) { to = '/' } - if (isProcessingMiddleware()) { + // Early redirect on client-side since only possible option is redirectCode and not applied + if (process.client && isProcessingMiddleware()) { return to } const router = useRouter()