diff options
| author | Fuwn <[email protected]> | 2024-01-08 15:45:46 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-01-08 15:45:46 -0800 |
| commit | 3bc6b81abb058032c62d362cc38348dddd172e49 (patch) | |
| tree | 6668e0842cad65e154774ae894a428fa76e05f39 /src/routes/wrapped | |
| parent | feat(tools): new tools url method (diff) | |
| download | due.moe-3bc6b81abb058032c62d362cc38348dddd172e49.tar.xz due.moe-3bc6b81abb058032c62d362cc38348dddd172e49.zip | |
fix(routes): shortcuts pass queries
Diffstat (limited to 'src/routes/wrapped')
| -rw-r--r-- | src/routes/wrapped/+server.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/routes/wrapped/+server.ts b/src/routes/wrapped/+server.ts index cc070af0..e9c8c8d2 100644 --- a/src/routes/wrapped/+server.ts +++ b/src/routes/wrapped/+server.ts @@ -3,7 +3,9 @@ import root from '$lib/Utility/root.js'; export const GET = ({ url }) => Response.redirect( root( - `/tools/wrapped${url.searchParams.values.length > 0 ? `&${url.searchParams.toString()}` : ''}` + `/tools/wrapped${ + url.searchParams.toString().length > 0 ? `&${url.searchParams.toString()}` : '' + }` ), 307 ); |