Skip to content

Commit e5ab686

Browse files
Merge pull request #215 from netwrix/fix-kb-trailing-slashes
Fix KB index link trailing slash issues
2 parents b315185 + 2d5a1f5 commit e5ab686

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/generateKBSidebar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function generateKBSidebar(productName) {
105105

106106
// Handle index.md files specially - they should link to parent directory
107107
const href = file === 'index.md'
108-
? `/docs/kb/${productName}/${folder.name}/`
108+
? `/docs/kb/${productName}/${folder.name}`
109109
: `/docs/kb/${productName}/${folder.name}/${encodeURIComponent(file.replace('.md', ''))}`;
110110

111111
return {
@@ -140,7 +140,7 @@ function generateKBSidebar(productName) {
140140

141141
// Handle index.md files specially - they should link to parent directory
142142
const href = file.name === 'index.md'
143-
? `/docs/kb/${productName}/`
143+
? `/docs/kb/${productName}`
144144
: `/docs/kb/${productName}/${encodeURIComponent(file.name.replace('.md', ''))}`;
145145

146146
return {

0 commit comments

Comments
 (0)