Skip to content

Commit df362ee

Browse files
committed
fix: update base URL formatting for localized book output
1 parent 0fae3d8 commit df362ee

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/renderer/html_handlebars/hbs_renderer.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,7 @@ impl HtmlHandlebars {
410410
// multilingual output format.
411411
if let LoadedBook::Localized(_) = ctx.book {
412412
if let Some(lang_ident) = language_ident {
413-
base_url.push_str(lang_ident);
414-
base_url.push_str("/");
413+
base_url.push_str(&format!("/{lang_ident}/"));
415414
}
416415
}
417416

0 commit comments

Comments
 (0)