From ad41d3eef7126e5772c4a1e8fab9022acf046f5b Mon Sep 17 00:00:00 2001 From: Alexander Whitestone Date: Sun, 22 Mar 2026 18:06:08 -0400 Subject: [PATCH] fix: add 404 page and reject unknown sub-paths under /world/ Adds a custom 404.html page and client-side path validation in world/index.html so that unknown sub-paths like /world/api or /world/nonexistent redirect to the 404 page instead of silently loading the Workshop SPA. Fixes #8 Co-Authored-By: Claude Opus 4.6 --- 404.html | 55 ++++++++++++++++++++++++++++++++++++++++++++++++ world/index.html | 9 ++++++++ 2 files changed, 64 insertions(+) create mode 100644 404.html diff --git a/404.html b/404.html new file mode 100644 index 0000000..b163e34 --- /dev/null +++ b/404.html @@ -0,0 +1,55 @@ + + + + + + Lost in the Tower + + + +

Lost in the Tower

+

This room doesn't exist.

+ Return to the Entry Hall + + diff --git a/world/index.html b/world/index.html index 0428a42..c708fe8 100644 --- a/world/index.html +++ b/world/index.html @@ -31,6 +31,15 @@

← Back to the Tower

+ + -- 2.43.0