diff --git a/src/routes/(admin)/account/+layout.ts b/src/routes/(admin)/account/+layout.ts index 3738e26b..52c667dd 100644 --- a/src/routes/(admin)/account/+layout.ts +++ b/src/routes/(admin)/account/+layout.ts @@ -24,10 +24,12 @@ export const load = async ({ fetch, data, depends, url }) => { data.profile const createProfilePath = "/account/create_profile" + const signOutPath = "/account/sign_out" if ( profile && !_hasFullProfile(profile) && - url.pathname !== createProfilePath + url.pathname !== createProfilePath && + url.pathname !== signOutPath ) { redirect(303, createProfilePath) }