mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-11-08 08:52:28 +01:00
fix: use absolute paths for i18n links to prevent URL duplication
This commit is contained in:
1 parent
c010327daa
commit
b745831526
2 files changed
+4
-1
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user