aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-01-03 06:13:30 -0800
committerFuwn <[email protected]>2024-01-03 06:13:30 -0800
commit3af859487ed2bafcd8d92931f5693224c4d6f3f3 (patch)
treeaeb5a00226afecb7f217c731d9e32300151baae5
parentfix(routes): shortcuts no trailing and (diff)
downloaddue.moe-3af859487ed2bafcd8d92931f5693224c4d6f3f3.tar.xz
due.moe-3af859487ed2bafcd8d92931f5693224c4d6f3f3.zip
fix(routes): absolute domain for shortcuts
-rw-r--r--src/routes/birthdays/+server.ts4
-rw-r--r--src/routes/wrapped/+server.ts2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/routes/birthdays/+server.ts b/src/routes/birthdays/+server.ts
index 346619ac..fe94f3e5 100644
--- a/src/routes/birthdays/+server.ts
+++ b/src/routes/birthdays/+server.ts
@@ -1,5 +1,7 @@
export const GET = ({ url }) =>
Response.redirect(
- `/tools?tool=birthdays${url.search.length > 0 ? url.search.replace('?', '') : ''}`,
+ `https://due.moe/tools?tool=birthdays${
+ url.search.length > 0 ? url.search.replace('?', '') : ''
+ }`,
302
);
diff --git a/src/routes/wrapped/+server.ts b/src/routes/wrapped/+server.ts
index 1acbbe62..851a4d7e 100644
--- a/src/routes/wrapped/+server.ts
+++ b/src/routes/wrapped/+server.ts
@@ -1,5 +1,5 @@
export const GET = ({ url }) =>
Response.redirect(
- `/tools?tool=wrapped${url.search.length > 0 ? url.search.replace('?', '') : ''}`,
+ `https://due.moe/tools?tool=wrapped${url.search.length > 0 ? url.search.replace('?', '') : ''}`,
302
);