// The fallback for any /js/* URL the router does not know. // // The server cannot 404 these: it answers every /js/* path with the same SPA shell, // because it has no idea which routes the bundle contains. So the router has to be the // one to say so — and if it does not, an unknown URL renders the chrome around an empty //
, which is a blank page with a 200 and no explanation. // // It names the paths that MOVED, because that is what a stale bookmark most likely wants: // /js/kit, /js/forms, /js/table and /js/theming were four pages, and are now four // sections of one. import { useLocation, useNavigate } from "@solidjs/router"; import { ButtonUI, BUTTON_COLOR_PRIMARY, BUTTON_COLOR_LIGHT_NEUTRAL } from "@ui/Buttons"; export function NotFound() { const location = useLocation(); const navigate = useNavigate(); return (

Page not found

No route matches {location.pathname}.

The kit used to be spread across several pages — /js/kit,{" "} /js/forms, /js/table,{" "} /js/theming. It is one page now, and they are sections of it.

navigate("/components")}> Go to Components navigate("/")}> Overview
); }