Skip to content

Commit 2597f36

Browse files
committed
fix: remove index.html in next chapter
1 parent 3b506a8 commit 2597f36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderer/html_handlebars/helpers/navigation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ fn render(
156156
.ok_or_else(|| {
157157
RenderErrorReason::Other("Link could not be converted to str".to_owned())
158158
})
159-
.map(|p| context.insert("link".to_owned(), json!(p.replace('\\', "/"))))
159+
.map(|p| context.insert("link".to_owned(), json!(p.replace('\\', "/").replace("/index.html", "/"))))
160160
})?;
161161

162162
trace!("Render template");

0 commit comments

Comments
 (0)