summaryrefslogtreecommitdiff
path: root/client/src/routes/login/+page.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/routes/login/+page.ts')
-rw-r--r--client/src/routes/login/+page.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/src/routes/login/+page.ts b/client/src/routes/login/+page.ts
new file mode 100644
index 0000000..70d306a
--- /dev/null
+++ b/client/src/routes/login/+page.ts
@@ -0,0 +1,7 @@
+import type { PageLoad } from './$types';
+
+export const load: PageLoad = async ({ url }) => {
+ return {
+ return: url.searchParams.get('return') || ''
+ };
+};