Skip to content

Commit ed6ab57

Browse files
committed
Fix TypeRef crossref links missing leading slash
1 parent 2ba6c62 commit ed6ab57

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/lib/components/api/TypeRef.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@
7878
type: target.type as 'class' | 'function' | 'method' | 'module'
7979
});
8080
81-
// target.path is absolute like /pathsim/api#ClassName, prepend base for deployment
82-
goto(`${base}${target.path}`);
81+
// target.path is relative like pathsim/api#ClassName, prepend base/ for absolute URL
82+
goto(`${base}/${target.path}`);
8383
}
8484
</script>
8585

8686
<span class="type-ref">{#each parts as part}{#if part.isLink && part.target}<a
87-
href="{base}{part.target.path}"
87+
href="{base}/{part.target.path}"
8888
class="type-link"
8989
onclick={(e) => handleClick(e, part.target)}
9090
>{part.text}</a>{:else}{part.text}{/if}{/each}</span>

0 commit comments

Comments
 (0)