tomai
Log in
← ← Back to Announcements
🐛 Bug Fix Jul 30, 2026

Fixed: Hreflang Generator JavaScript Error

The Hreflang Generator had a bug where entering language codes would throw an "escAttr3 is not defined" error and produce no output. Root cause: esbuild renamed an inlined helper function (escAttr → escAttr3) during bundling, but the function body serialised via .toString() still referenced the renamed variable — while the page script defined it under the original name. Fixed by making the helper function self-contained inside the main function body, following the dependency-free pattern required by codebase rule 6. The same latent issue in Social Share Preview was also fixed.