Skip to content

404 page with mike and versioning #7904

Answered by kamilkrzyskow
niden asked this question in Q&A
Discussion options

You must be logged in to vote

There is no 404.html in the root of the gh-pages branch:

When an invalid URL loads then the back-end server, GitHub Pages loads the base_url/404.html file, and since your repository doesn't include that then it loads the GitHub 404 page.

MkDocs generates only static HTML pages, there is no "browser application" which would resolve the path to the proper 404 page of a given version.

The root index.html file replaces the location with /latest, I don't know what generates this source 🤔 Does mike add it?
The index.html source of https://mkdocs-material.github.io/example-versioning/ is a bit different yet the same.
There is no 404.html f…

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
4 replies
@niden
Comment options

@niclasheinz
Comment options

@kamilkrzyskow
Comment options

@niden
Comment options

Comment options

You must be logged in to vote
6 replies
@kamilkrzyskow
Comment options

@niden
Comment options

@niden
Comment options

@kamilkrzyskow
Comment options

@niden
Comment options

Answer selected by niden
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
upstream Issue must be taken upstream
3 participants