mirror of
https://gitea.dmz.rs/Decentrala/website.git
synced 2026-09-19 20:00:23 +02:00
[Fix] lang
This commit is contained in:
@@ -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}`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user