fix(i18n): localise extensionless directory links in the DE/ES pages

build-i18n.py's rebase_paths() only re-pointed a root-absolute page link when it
contained ".html", so extensionless directory links stayed on the EN route even
when the language had its own copy (`/odoo-erp-automation-bootcamp/` on all four
DE and ES pages, and `/` on the DE/ES bootcamp pages). Same guard as the .html
branch: localise only when <lang>/<path>/index.html exists.

Re-applied the rebasing to the 8 already-built DE/ES pages (work/i18n/
relocalise-links.py) - a full re-transform is not safe for them because the
switcher-slot/hero rework means repo pages are not raw transform output. 18 refs
in 8 files. The DE/ES homepages were the stale case: their body links were built
before support.html/odoo-hosting-2027.html existed in that language and were
never revisited.

check-links.py now flags an EN-route page link whose language has its own copy:
0 such links on all 10 DE/ES pages after the rebuild. test-build.py 107 passed;
verify-html.py 0 problems.
This commit is contained in:
oliver committed 2026-10-27 19:12:47 +00:00
1 parent 268b2645e2
commit 12704a5618
8 files changed
+18 -18

No files matched your search

+2 -2
View File
@@ -559,7 +559,7 @@
<!-- Page-scoped top bar: the site has no global header, so the page carries its own way home. -->
<div class="bc-topbar">
<div class="container">
<a class="bc-brand" href="/">ODOO4<span>projects</span></a>
<a class="bc-brand" href="/es/">ODOO4<span>projects</span></a>
<nav class="bc-topbar-links" aria-label="Enlaces de página">
<a href="/es/#pricing">Planes y precios</a>
<a href="/es/support.html">Soporte</a>
@@ -827,7 +827,7 @@
<div>
<h4>Enlaces útiles</h4>
<ul>
<li><a href="/odoo-erp-automation-bootcamp/">ODOO Bootcamp</a></li>
<li><a href="/es/odoo-erp-automation-bootcamp/">ODOO Bootcamp</a></li>
<li><a href="/es/odoo-hosting-2027.html">ODOO Hosting en 2027</a></li>
<li><a href="/es/support.html">Soporte</a></li>
<li><a href="/legal.html">Aviso legal</a></li>