Redirects/links relative

This commit is contained in:
Nicolai Ort 2023-04-19 12:57:02 +02:00
parent ff36691ada
commit 482d6387fa
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
3 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@
<div class="mt-8 grid gap-3 w-full sm:inline-flex sm:justify-center">
<a
class="inline-flex justify-center items-center gap-x-3 text-center bg-gradient-to-tl from-blue-600 to-violet-600 hover:from-violet-600 hover:to-blue-600 border border-transparent text-white text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-blue-600 focus:ring-offset-2 focus:ring-offset-white py-3 px-4 dark:focus:ring-offset-gray-800"
href="/login"
href="./login"
>
Kiosk starten
<svg class="w-3 h-3" width="16" height="16" viewBox="0 0 16 16" fill="none">

View File

@ -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;

View File

@ -11,7 +11,7 @@
} catch (error) {
console.log(error);
userstore.logout();
location.replace(`/login`);
location.replace(`../login`);
}
});
</script>