diff options
| author | Fuwn <[email protected]> | 2023-12-03 21:37:21 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-12-03 21:37:21 -0800 |
| commit | 87e29b90e5687241bf098b331d125c678a8e4a9e (patch) | |
| tree | bce229855a90d8a0f0de0c213c71b11803a4df9a /src/routes/wrapped | |
| parent | feat(birthdays): pass params from shortcut (diff) | |
| download | due.moe-87e29b90e5687241bf098b331d125c678a8e4a9e.tar.xz due.moe-87e29b90e5687241bf098b331d125c678a8e4a9e.zip | |
refactor(routes): simplify shortcuts
Diffstat (limited to 'src/routes/wrapped')
| -rw-r--r-- | src/routes/wrapped/+server.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/routes/wrapped/+server.ts b/src/routes/wrapped/+server.ts index b68c67cf..f4dc7dfd 100644 --- a/src/routes/wrapped/+server.ts +++ b/src/routes/wrapped/+server.ts @@ -1,3 +1,2 @@ -export const GET = () => { - return Response.redirect('/tools?tool=wrapped', 302); -}; +export const GET = ({ url }) => + Response.redirect(`/tools?tool=wrapped&${url.search.replace('?', '')}`, 302); |