diff --git a/app/middleware/profile.global.ts b/app/middleware/profile.global.ts index 518b4f7..97f8b53 100644 --- a/app/middleware/profile.global.ts +++ b/app/middleware/profile.global.ts @@ -13,9 +13,7 @@ export default defineNuxtRouteMiddleware(async (to) => { fullPath.startsWith('/profiles') || routeName.startsWith('profiles') - if (!activeProfile.value && !isProfilesRoute) { - if (!normalizedPath.startsWith('/profiles')) { - return navigateTo('/profiles') - } + if (process.client && !activeProfile.value && !isProfilesRoute) { + return navigateTo('/profiles') } })