We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
And maybe this could handle redirects for trailing slashes as described in #171.
The text was updated successfully, but these errors were encountered:
Yes, we can handle #171 with the following script in 404.html, either by shooting in the dark when the requested URL ends with a /:
if (location.pathname.endsWith("/")) { location.replace(location.pathname.slice(0,-1) + ".html"); }
Or by listing only the relevant URLs:
if (["/javascript/"].find((dir) => location.pathname.endsWith(dir)) { location.replace(location.pathname.slice(0,-1) + ".html"); }
We could build 404.html from a custom 404.md, if present.
Sorry, something went wrong.
A --base (#42) will be useful for the built 404.html, as it might be served from different depths in /the/request/path/hierarchy.
--base
Fil
Successfully merging a pull request may close this issue.
And maybe this could handle redirects for trailing slashes as described in #171.
The text was updated successfully, but these errors were encountered: