We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59a2937 commit 6a7dd3eCopy full SHA for 6a7dd3e
src/site-transforms.ts
@@ -322,7 +322,7 @@ export const useKiwixLandingPage = async (
322
}
323
324
// Fixup relative paths, if needed
325
- const depth = (options.kiwixMainPage.match(/\//g) || []).length
+ const depth = (kiwixMainPageSrc.substring(wikiFolder.length + 1).match(/\//g) || []).length
326
if (depth) {
327
const fixRelativeLinksUp = (filePath: string, depth: number) => {
328
const fileBytes = readFileSync(filePath)
0 commit comments