diff --git a/frontend/src/App.svelte b/frontend/src/App.svelte
index 71d4f4d..3631f9a 100644
--- a/frontend/src/App.svelte
+++ b/frontend/src/App.svelte
@@ -15,8 +15,9 @@ import type { detach } from "svelte/internal";
// react to hash changes
let hash = window.location.hash.substr(1);
window.onhashchange = () => {
- hash = window.location.hash.substr(1);
+ hash = window.location.hash.substr(1);
}
+ $: selectedTaskId = (/^task\/([^\/]*)/.exec(hash) || [null, null])[1]
+