fix: use absolute paths for i18n links to prevent URL duplication

This commit is contained in:
alam00000 committed 2026-01-26 23:46:19 +05:30
1 parent c010327daa
commit b745831526
2 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -173,7 +173,7 @@ async function generateI18nPages() {
: href;
newHref = `${BASE_PATH}/${lang}${pathWithoutBase}`;
} else {
newHref = `${lang}/${href}`;
newHref = `${BASE_PATH}/${lang}/${href}`;
}
link.setAttribute('href', newHref);