Skip to content

Commit f2cf91a

Browse files
committed
docs: hotfix github links
1 parent 8e4b09e commit f2cf91a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/app/helpers/links.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ export const getDocFilePathToGithub = (item?: FlattenedNavigation): string => {
88
return BASE_URL
99
}
1010

11-
let filePath = item.href.split('/docs/')[1].split('/').join('.')
11+
let filePath = item.href.split('/docs/')[1]
1212

1313
if (!filePath) {
1414
filePath = '_index'
15+
} else {
16+
filePath = filePath.split('.').join('')
1517
}
1618

1719
if (item.hasChildren) {

0 commit comments

Comments
 (0)