diff --git a/site/scripts/main.js b/site/scripts/main.js index aaacfad..9b5fe30 100644 --- a/site/scripts/main.js +++ b/site/scripts/main.js @@ -63,8 +63,8 @@ window.addEventListener("DOMContentLoaded", () => { if (!href.startsWith(`/${currentLang}`)) { a.setAttribute("href", `/${currentLang}${href.slice(3)}`); } - } else { - // No language prefix, prepend currentLang + } else if (currentLang !== "sr") { + // Only prepend language prefix for non-default languages a.setAttribute("href", `/${currentLang}${href}`); } }