Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d6eceb commit b967016Copy full SHA for b967016
apps/codingcatdev/src/routes/(protected)/+layout.server.ts
@@ -7,7 +7,7 @@ export const prerender = false;
7
export const load = async ({ url, parent }) => {
8
const data = await parent();
9
if (!allowLocal && !data?.user?.uid) {
10
- throw redirect(307, `/login?redirectTo=${url.pathname}`);
+ throw redirect(303, `/login?redirectTo=${url.pathname}`);
11
}
12
if (data?.user?.stripeRole && url.searchParams.has('redirectTo')) {
13
throw redirect(303, url.searchParams.get('redirectTo') || '/');
0 commit comments