Skip to content

Conversation

@Fil
Copy link
Contributor

@Fil Fil commented Nov 18, 2023

The 404.md template, if present, is used to serve 404 Not Found errors on GET requests.

A <base href=/> tag is added to its head so that it can be served from /any/subpath and still work.

closes #174

The default template in the documentation has an extra script that ensures that the /javascript page "works" with npx http-server, which redirects it to javascript/, serves the 404 page, which redirects to /javascript.html.

closes #171

@Fil Fil requested a review from mbostock November 18, 2023 06:32
@Fil Fil mentioned this pull request Nov 18, 2023
@mbostock mbostock enabled auto-merge (squash) November 19, 2023 05:41
@mbostock mbostock merged commit 1c7e6a7 into main Nov 19, 2023
@mbostock mbostock deleted the fil/404 branch November 19, 2023 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generate a custom 404 page The built site does not serve /javascript properly

2 participants