aboutsummaryrefslogtreecommitdiff
path: root/src/routes/birthdays
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/birthdays')
-rw-r--r--src/routes/birthdays/+server.ts12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/routes/birthdays/+server.ts b/src/routes/birthdays/+server.ts
index 2b9219b5..7f0fd833 100644
--- a/src/routes/birthdays/+server.ts
+++ b/src/routes/birthdays/+server.ts
@@ -1,7 +1,11 @@
+import root from '$lib/Utility/root.js';
+
export const GET = ({ url }) =>
Response.redirect(
- `https://due.moe/tools?tool=birthdays${
- url.searchParams.values.length > 0 ? `&${url.searchParams.toString()}` : ''
- }`,
- 301
+ root(
+ `/tools/birthdays${
+ url.searchParams.values.length > 0 ? `&${url.searchParams.toString()}` : ''
+ }`
+ ),
+ 307
);