From 1e6497ef32ed974c39225f251079de1d7e2b8ddb Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 3 Dec 2023 21:25:33 -0800 Subject: feat(birthdays): pass params from shortcut --- src/routes/birthdays/+server.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/routes/birthdays/+server.ts b/src/routes/birthdays/+server.ts index bf7dcaea..a1765d27 100644 --- a/src/routes/birthdays/+server.ts +++ b/src/routes/birthdays/+server.ts @@ -1,3 +1,8 @@ -export const GET = () => { - return Response.redirect('/tools?tool=todays_character_birthdays', 302); +export const GET = ({ url }) => { + return Response.redirect( + `/tools?tool=todays_character_birthdays&month=${url.searchParams.get( + 'month' + )}&day=${url.searchParams.get('day')}`, + 302 + ); }; -- cgit v1.2.3