Compare commits

..

1 Commits

Author SHA1 Message Date
Alexander Whitestone
f2f115aa21 Fix #59: Footer /about link points to missing route
All checks were successful
Sanity Checks / sanity-test (pull_request) Successful in 4s
Smoke Test / smoke (pull_request) Successful in 6s
Change href="/about" to href="/about.html" in footer.
About page exists as about.html but the link pointed to /about
which 404s on plain static servers and nginx without try_files.

Works under python3 -m http.server and deployed nginx.

Closes #59
2026-04-14 14:04:35 -04:00

View File

@@ -680,7 +680,7 @@ html, body {
<!-- Footer -->
<footer id="footer">
<a href="/about" aria-label="About The Door">about</a>
<a href="/about.html" aria-label="About The Door">about</a>
<button id="safety-plan-btn" aria-label="Open My Safety Plan">my safety plan</button>
<button id="clear-chat-btn" aria-label="Clear chat history">clear chat</button>
</footer>
@@ -808,7 +808,6 @@ Sovereignty and service always.`;
var crisisPanel = document.getElementById('crisis-panel');
var crisisOverlay = document.getElementById('crisis-overlay');
var overlayDismissBtn = document.getElementById('overlay-dismiss-btn');
var overlayCallLink = document.querySelector('#crisis-overlay .overlay-call');
var statusDot = document.querySelector('.status-dot');
var statusText = document.getElementById('status-text');
@@ -1003,11 +1002,7 @@ Sovereignty and service always.`;
}
}, 1000);
// Focus the Call 988 link — the first actionable (non-disabled) element.
// Disabled buttons are not valid focus targets (WCAG 2.4.3).
if (overlayCallLink) {
overlayCallLink.focus();
}
overlayDismissBtn.focus();
}
overlayDismissBtn.addEventListener('click', function() {