aboutsummaryrefslogtreecommitdiff
path: root/src/routes/birthdays/+server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/birthdays/+server.ts')
-rw-r--r--src/routes/birthdays/+server.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/routes/birthdays/+server.ts b/src/routes/birthdays/+server.ts
index eeea0189..346619ac 100644
--- a/src/routes/birthdays/+server.ts
+++ b/src/routes/birthdays/+server.ts
@@ -1,2 +1,5 @@
export const GET = ({ url }) =>
- Response.redirect(`/tools?tool=birthdays&${url.search.replace('?', '')}`, 302);
+ Response.redirect(
+ `/tools?tool=birthdays${url.search.length > 0 ? url.search.replace('?', '') : ''}`,
+ 302
+ );