Wrong archive links when already in archive
tbreuss opened this issue · comments
tebe commented
When we are viewing an archived version and we try to change to another version, this results in a 404 page not found error. This is quite annoying.
See screenshots.
- Here we are in a archived version:
- And this is the 404
The solution to the problem consists of two parts:
- Edit the generator-docs.js script
Simply add a slash at line https://github.com/MithrilJS/mithril.js/blob/next/scripts/generate-docs.js#L98. I have a commit in a docs-update branch.
- Edit generated gh-pages
For already archived docs we have to edit content at https://github.com/MithrilJS/mithril.js/tree/gh-pages/archive, if we wan't to fix this.