[bug] SPA routing catches /tower/api and other sub-paths #8
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
All sub-paths under
/tower/(e.g./tower/api,/tower/anything) resolveto the same SPA page. This means mistyped URLs or direct API path access from
the tower context silently load the wrong page instead of returning a proper
404 or redirecting.
Solution
Configure the SPA router or server to:
Acceptance Criteria
/tower/loads the Tower World correctly/tower/nonexistentreturns 404 or redirects with notificationSeverity
Low — cosmetic/correctness issue, not blocking functionality.
Reported By
Perplexity Comet automated browser test, 2026-03-19
PR #9 created.
Changes:
404.html— a styled "Lost in the Tower" page matching the site designworld/index.htmlthat redirects unknown sub-paths (e.g./world/api,/world/nonexistent) to the 404 page viawindow.location.replaceThe script checks if the current path is exactly
/world(with or without trailing slash). Any other sub-path gets redirected to/404.html. The 404 page links back to the entry hall.