[Fix] lang

This commit is contained in:
2026-08-09 06:07:20 +02:00
parent 352709cec6
commit 26d1295006
+2 -2
View File
@@ -63,8 +63,8 @@ window.addEventListener("DOMContentLoaded", () => {
if (!href.startsWith(`/${currentLang}`)) { if (!href.startsWith(`/${currentLang}`)) {
a.setAttribute("href", `/${currentLang}${href.slice(3)}`); a.setAttribute("href", `/${currentLang}${href.slice(3)}`);
} }
} else { } else if (currentLang !== "sr") {
// No language prefix, prepend currentLang // Only prepend language prefix for non-default languages
a.setAttribute("href", `/${currentLang}${href}`); a.setAttribute("href", `/${currentLang}${href}`);
} }
} }