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

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

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);