fix: stabilise reading follow on long editions
All checks were successful
SMOKE / smoke (push) Successful in 6s
CI / build-and-anchors (push) Successful in 37s
CI / build-and-anchors (pull_request) Successful in 38s

This commit is contained in:
2026-04-26 18:22:11 +02:00
parent f1c5bb0d26
commit 6b2fd25d23
15 changed files with 112 additions and 38 deletions

View File

@@ -2897,6 +2897,12 @@ const WHOAMI_FORCE_LOCALHOST = (import.meta.env.PUBLIC_WHOAMI_FORCE_LOCALHOST ??
return cand;
}
// Éditions longues : ne jamais afficher une section
// avant qu'elle ait réellement franchi la ligne de capture.
if (!isGlossaryEdition) {
return cand;
}
return cand || H2[0] || null;
}
@@ -2944,6 +2950,10 @@ const WHOAMI_FORCE_LOCALHOST = (import.meta.env.PUBLIC_WHOAMI_FORCE_LOCALHOST ??
}
}
if (!isGlossaryEdition) {
return cand;
}
return cand || scoped[0] || null;
}