Skip to content

Commit f7790f7

Browse files
authored
fix: use pathToRoot in navigation loader (#1623)
1 parent 27b00e4 commit f7790f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/dokka-presets/scripts/custom-navigation-loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function loadNavigation() {
5454
return Promise.resolve('');
5555
}
5656

57-
const navigationPath = modulePath ? `/${modulePath}/navigation.html` : `${pathToRoot}navigation.html`;
57+
const navigationPath = modulePath ? `${pathToRoot}${modulePath}/navigation.html` : `${pathToRoot}navigation.html`;
5858

5959
return fetch(navigationPath)
6060
.then(response => response.text())

0 commit comments

Comments
 (0)