From 19c9fa339b3ddc4adef39d5783346bfd0db904af Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Wed, 19 Apr 2023 12:59:52 +0200 Subject: [PATCH] fix(hrefs): Fixed relative locations --- src/routes/login/+page.svelte | 2 +- src/routes/registration/+layout.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/login/+page.svelte b/src/routes/login/+page.svelte index 00a8df3..e50fb66 100644 --- a/src/routes/login/+page.svelte +++ b/src/routes/login/+page.svelte @@ -14,7 +14,7 @@ })) as import('@odit/lfk-client-js').ResponseAuth; loginError=false; await userstore.login(auth); - location.replace('../registration'); + location.replace('./registration'); } catch (error) { console.log(error); loginError = true; diff --git a/src/routes/registration/+layout.svelte b/src/routes/registration/+layout.svelte index 0348f6c..c40a03f 100644 --- a/src/routes/registration/+layout.svelte +++ b/src/routes/registration/+layout.svelte @@ -11,7 +11,7 @@ } catch (error) { console.log(error); userstore.logout(); - location.replace(`../login`); + location.replace(`./login`); } });