We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ba6c62 commit ed6ab57Copy full SHA for ed6ab57
1 file changed
src/lib/components/api/TypeRef.svelte
@@ -78,13 +78,13 @@
78
type: target.type as 'class' | 'function' | 'method' | 'module'
79
});
80
81
- // target.path is absolute like /pathsim/api#ClassName, prepend base for deployment
82
- goto(`${base}${target.path}`);
+ // target.path is relative like pathsim/api#ClassName, prepend base/ for absolute URL
+ goto(`${base}/${target.path}`);
83
}
84
</script>
85
86
<span class="type-ref">{#each parts as part}{#if part.isLink && part.target}<a
87
- href="{base}{part.target.path}"
+ href="{base}/{part.target.path}"
88
class="type-link"
89
onclick={(e) => handleClick(e, part.target)}
90
>{part.text}</a>{:else}{part.text}{/if}{/each}</span>
0 commit comments