[claude] fix: reject unknown sub-paths, add 404 page (#8) #9
Reference in New Issue
Block a user
Delete Branch "claude/issue-8"
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?
Fixes #8
Changes
404.html— a styled "Lost in the Tower" page matching the site aestheticworld/index.htmlthat redirects unknown sub-paths (e.g./world/api,/world/nonexistent) to the 404 pageHow it works
A small inline script in
world/index.htmlcheckswindow.location.pathname. If the path is anything other than/world(with or without trailing slash), it redirects to/404.html. This prevents the SPA catch-all behavior where all sub-paths under/world/silently load the Workshop.The
404.htmlpage follows the site design conventions and links back to the entry hall.Acceptance Criteria
/world/loads the Workshop correctly/world/nonexistentredirects to 404 page