Redirects/links relative
This commit is contained in:
parent
ff36691ada
commit
482d6387fa
@ -22,7 +22,7 @@
|
|||||||
<div class="mt-8 grid gap-3 w-full sm:inline-flex sm:justify-center">
|
<div class="mt-8 grid gap-3 w-full sm:inline-flex sm:justify-center">
|
||||||
<a
|
<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"
|
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
|
Kiosk starten
|
||||||
<svg class="w-3 h-3" width="16" height="16" viewBox="0 0 16 16" fill="none">
|
<svg class="w-3 h-3" width="16" height="16" viewBox="0 0 16 16" fill="none">
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
})) as import('@odit/lfk-client-js').ResponseAuth;
|
})) as import('@odit/lfk-client-js').ResponseAuth;
|
||||||
loginError=false;
|
loginError=false;
|
||||||
await userstore.login(auth);
|
await userstore.login(auth);
|
||||||
location.replace('/registration');
|
location.replace('../registration');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
loginError = true;
|
loginError = true;
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
userstore.logout();
|
userstore.logout();
|
||||||
location.replace(`/login`);
|
location.replace(`../login`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user