mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-31 01:00:47 +08:00
Fix URL navigation
This commit is contained in:
+3
-1
@@ -10,7 +10,9 @@
|
||||
import Register from '@app/base/register/Register.svelte';
|
||||
import Header from '@app/Header.svelte';
|
||||
|
||||
export let url = "register";
|
||||
const defaultPath = "register";
|
||||
const path = window.location.pathname;
|
||||
export let url = path === "/" ? defaultPath : path;
|
||||
|
||||
function handleKeydown(event) {
|
||||
if (event.key === 'Enter') {
|
||||
|
||||
Reference in New Issue
Block a user