diff options
| author | Fuwn <[email protected]> | 2023-12-03 21:25:33 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-12-03 21:25:33 -0800 |
| commit | 1e6497ef32ed974c39225f251079de1d7e2b8ddb (patch) | |
| tree | 38af6a21bc0b4f6ee126971066c136f889c81040 /src/routes/birthdays | |
| parent | feat(tools): serialise settings into url (diff) | |
| download | due.moe-1e6497ef32ed974c39225f251079de1d7e2b8ddb.tar.xz due.moe-1e6497ef32ed974c39225f251079de1d7e2b8ddb.zip | |
feat(birthdays): pass params from shortcut
Diffstat (limited to 'src/routes/birthdays')
| -rw-r--r-- | src/routes/birthdays/+server.ts | 9 |
1 files changed, 7 insertions, 2 deletions
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 + ); }; |