diff options
| author | Fuwn <[email protected]> | 2024-01-03 06:13:30 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-01-03 06:13:30 -0800 |
| commit | 3af859487ed2bafcd8d92931f5693224c4d6f3f3 (patch) | |
| tree | aeb5a00226afecb7f217c731d9e32300151baae5 | |
| parent | fix(routes): shortcuts no trailing and (diff) | |
| download | due.moe-3af859487ed2bafcd8d92931f5693224c4d6f3f3.tar.xz due.moe-3af859487ed2bafcd8d92931f5693224c4d6f3f3.zip | |
fix(routes): absolute domain for shortcuts
| -rw-r--r-- | src/routes/birthdays/+server.ts | 4 | ||||
| -rw-r--r-- | src/routes/wrapped/+server.ts | 2 |
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 ); |