aboutsummaryrefslogtreecommitdiff
path: root/src/routes/birthdays
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/birthdays')
-rw-r--r--src/routes/birthdays/+server.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/routes/birthdays/+server.ts b/src/routes/birthdays/+server.ts
index 7f0fd833..e20d6c8a 100644
--- a/src/routes/birthdays/+server.ts
+++ b/src/routes/birthdays/+server.ts
@@ -1,11 +1,12 @@
import root from '$lib/Utility/root.js';
-export const GET = ({ url }) =>
- Response.redirect(
+export const GET = ({ url }) => {
+ return Response.redirect(
root(
`/tools/birthdays${
- url.searchParams.values.length > 0 ? `&${url.searchParams.toString()}` : ''
+ url.searchParams.toString().length > 0 ? `?${url.searchParams.toString()}` : ''
}`
),
307
);
+};