Files
kevinveenbirkenbachandClaude Opus 5.5 95bf897c34 fix(web-app-kix): read the sign-in route on every title update
design.js.j2 evaluated the /auth route check once, when the script loaded. KIX changes routes on the client without a document load, so after a route change brand() kept the old answer: routed from /auth to /home it wrote the bare configured title over the page label, routed from /home to /auth it appended the suffix to the translated sign-in title (Welcome to KIX followed by the configured title). The check now runs inside brand(), so each MutationObserver callback reads the current location.pathname. Found by CodeRabbit on PR 2488 and reproduced: the old template returns the bare title and the suffixed sign-in title for the two navigations. test_design_title.py gained a navigation harness that loads the script on one route, moves location.pathname and fires the observer; both cases fail on the old template. Tests: KIX and Semaphore unit tests plus the once-flag, comment and import lints, 35 passed, 20 subtests.

🎯 Fix: 92 %
💥 Break: 2 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 90
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 12:14:30 +00:00
..