forked from Decentrala/website
[Fix] lang
This commit is contained in:
@@ -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}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user