From 6620bc00fdf5173ffb20a9057a4580b59410dbd7 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 8 Jan 2024 15:27:28 -0800 Subject: feat(tools): new tools url method --- src/routes/birthdays/+server.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/routes/birthdays/+server.ts') 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 ); -- cgit v1.2.3