diff --git a/src/Router.svelte b/src/Router.svelte
index 92f1c6c..49ac052 100644
--- a/src/Router.svelte
+++ b/src/Router.svelte
@@ -75,7 +75,7 @@
         <Info
             {pkginfo}
             prettify={prettify}
-            sourcelink="https://github.com/{regname}/tree/{branch}"
+            sourcelink="https://github.com/{regname}/tree/{branch}{path!=null ? "/"+path : ""}"
         />
     {/if}
 </main>