Skip to content

Commit af1dd0b

Browse files
authored
Merge pull request #198 from pyladies/fix_196
Fix relative docs sidebar
2 parents 911cd18 + 518cf32 commit af1dd0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/docs/[single].astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ const docs = await getSinglePage("docs");
6161
_doc.id === doc.id ? (
6262
<li>
6363
<a class="flex items-center text-primary p-2 rounded-lg hover:bg-primary hover:text-white group"
64-
href={`${_doc.id}`}>
64+
href={`/docs/${_doc.id}`}>
6565
<span class="ms-3">{ _doc.data.title }</span>
6666
</a>
6767
</li>
6868
) : (
6969
<li>
7070
<a class="flex items-center text-black p-2 rounded-lg hover:bg-primary hover:text-white group"
71-
href={`${_doc.id}`}>
71+
href={`/docs/${_doc.id}`}>
7272
<span class="ms-3">{ _doc.data.title }</span>
7373
</a>
7474
</li>

0 commit comments

Comments
 (0)