X-Git-Url: https://git.r.bdr.sh/rbdr/forum/blobdiff_plain/24be7b5399ae4162702ad9a1f17b5711922a2da4..00a6e8aa8dd06f8a2bd7ccccdccfcb6215cf4841:/app/forum.svelte?ds=inline diff --git a/app/forum.svelte b/app/forum.svelte index 038f176..bb2513d 100644 --- a/app/forum.svelte +++ b/app/forum.svelte @@ -20,14 +20,15 @@ const setRoute = function setRoute(targetPage) { return function (routerParams) { + params = routerParams; page = targetPage; - } - } + }; + }; const router = new LightRouter({ routes: { - '': () => page = Home, + '': () => (page = Home) && true, 'f/{id}': setRoute(TopicIndex), 'g/{id}': setRoute(TopicIndex), 'a/{id}': setRoute(Author),