diff --git a/src/lib/ui/nav/nav.svelte b/src/lib/ui/nav/nav.svelte
index bcfc7ed..7db8ce3 100644
--- a/src/lib/ui/nav/nav.svelte
+++ b/src/lib/ui/nav/nav.svelte
@@ -70,8 +70,9 @@
{/if}
{#if $page.params.slug && $page.params.topic}
{
- goto(`/${$page.params.slug}/${e.detail}`)
+ on:click={async (e) => {
+ await goto(`/${$page.params.slug}/${e.detail}`)
+ document.getElementById('desktop-content')?.scrollTo(0, 0)
}}
topics={$page.data.topics}
>
diff --git a/src/routes/[slug]/+layout.svelte b/src/routes/[slug]/+layout.svelte
index 0621737..d095fb4 100644
--- a/src/routes/[slug]/+layout.svelte
+++ b/src/routes/[slug]/+layout.svelte
@@ -79,6 +79,7 @@
{/if}