Skip to content

Commit

Permalink
fix: properly support no trailing slashes after fixing indexing top l…
Browse files Browse the repository at this point in the history
…evel pages

Fixes #212
  • Loading branch information
Cyriuz committed Jun 12, 2022
1 parent 0bec887 commit 999bd8b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export function processDocInfos(
.map<DocInfoWithFilePath>(({ route, url, type }) => ({
filePath: path.join(
outDir,
siteConfig.trailingSlash === false
siteConfig.trailingSlash === false && route != ""
? `${route}.html`
: `${route}/index.html`
),
Expand Down

0 comments on commit 999bd8b

Please sign in to comment.