Skip to content

Commit dcc4cf6

Browse files
committed
docs: add missing slash
1 parent a9148d6 commit dcc4cf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/lib/components/navbar/Search.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
let results: EnrichedSearchResult[] = $state([]);
2424
2525
async function downloadIndex() {
26-
const response = await fetch(`${base}${documentName}`);
26+
const response = await fetch(`${base}/${documentName}`);
2727
const json = await response.json();
2828
2929
const index = await createNewIndex();
@@ -104,7 +104,7 @@
104104
{#each results as result}
105105
<Command.Item
106106
onSelect={() => {
107-
if (result.match?.heading) goto(`${base}/${result.path}#${result.match.heading.id}`);
107+
if (result.match?.heading) goto(`${base}${result.path}#${result.match.heading.id}`);
108108
else goto(`${base}${result.path}`);
109109
open = false;
110110
}}

0 commit comments

Comments
 (0)