chore: update posthug and change all 301 to 307
This commit is contained in:
@@ -3,10 +3,9 @@ import { client } from '$lib/utils/posthog';
|
||||
|
||||
export const load = ({ request }) => {
|
||||
client.capture({
|
||||
distinctId:
|
||||
request.headers.get('x-forwarded-for') || new Date().getTime().toString(),
|
||||
event: 'cal.com page visited',
|
||||
distinctId: request.headers.get('x-forwarded-for') || new Date().getTime().toString(),
|
||||
event: 'cal.com page visited'
|
||||
});
|
||||
|
||||
throw redirect(301, 'https://cal.com/classroomio/demo');
|
||||
throw redirect(307, 'https://cal.com/classroomio/demo');
|
||||
};
|
||||
|
||||
@@ -7,5 +7,5 @@ export const load = ({ request }) => {
|
||||
event: 'discord page visited'
|
||||
});
|
||||
|
||||
throw redirect(301, 'https://discord.gg/dRmxBpJw59');
|
||||
throw redirect(307, 'https://discord.gg/dRmxBpJw59');
|
||||
};
|
||||
|
||||
@@ -3,10 +3,9 @@ import { client } from '$lib/utils/posthog';
|
||||
|
||||
export const load = async ({ request }) => {
|
||||
client.capture({
|
||||
distinctId:
|
||||
request.headers.get('x-forwarded-for') || new Date().getTime().toString(),
|
||||
event: 'github page visited',
|
||||
distinctId: request.headers.get('x-forwarded-for') || new Date().getTime().toString(),
|
||||
event: 'github page visited'
|
||||
});
|
||||
|
||||
throw redirect(301, 'https://github.com/rotimi-best/classroomio');
|
||||
throw redirect(307, 'https://github.com/rotimi-best/classroomio');
|
||||
};
|
||||
|
||||
@@ -3,13 +3,12 @@ import { client } from '$lib/utils/posthog';
|
||||
|
||||
export const load = async ({ request }) => {
|
||||
client.capture({
|
||||
distinctId:
|
||||
request.headers.get('x-forwarded-for') || new Date().getTime().toString(),
|
||||
event: 'privacy page visited',
|
||||
distinctId: request.headers.get('x-forwarded-for') || new Date().getTime().toString(),
|
||||
event: 'privacy page visited'
|
||||
});
|
||||
|
||||
throw redirect(
|
||||
301,
|
||||
307,
|
||||
'https://app.enzuzo.com/policies/privacy/958fc978-5477-11ee-a03b-7b111830c594'
|
||||
);
|
||||
};
|
||||
|
||||
@@ -7,5 +7,5 @@ export const load = ({ request }) => {
|
||||
event: 'signup'
|
||||
});
|
||||
|
||||
throw redirect(301, 'https://app.classroomio.com/signup');
|
||||
throw redirect(307, 'https://app.classroomio.com/signup');
|
||||
};
|
||||
|
||||
@@ -3,13 +3,9 @@ import { client } from '$lib/utils/posthog';
|
||||
|
||||
export const load = async ({ request }) => {
|
||||
client.capture({
|
||||
distinctId:
|
||||
request.headers.get('x-forwarded-for') || new Date().getTime().toString(),
|
||||
event: 'privacy page visited',
|
||||
distinctId: request.headers.get('x-forwarded-for') || new Date().getTime().toString(),
|
||||
event: 'privacy page visited'
|
||||
});
|
||||
|
||||
throw redirect(
|
||||
301,
|
||||
'https://app.enzuzo.com/policies/tos/958fc978-5477-11ee-a03b-7b111830c594'
|
||||
);
|
||||
throw redirect(307, 'https://app.enzuzo.com/policies/tos/958fc978-5477-11ee-a03b-7b111830c594');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user