Skip to content

Commit

Permalink
fix url path to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
krmanik committed Feb 2, 2024
1 parent dc08692 commit c5190f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions theme/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@
let langLink = document.createElement("a");
langLink.setAttribute("id", lang);
if (language === "en") {
langLink.href = `${full_path_to_root}`;
langLink.href = `${full_path_to_root}${path}`;
} else {
langLink.href = `${full_path_to_root}/${lang}`;
langLink.href = `${full_path_to_root}${lang}/${path}`;
}
langLink.textContent = book_lang[lang];
langButton.appendChild(langLink);
Expand Down

0 comments on commit c5190f0

Please sign in to comment.