🐛 Bug Report
In our docs, we have API docs listed by version. I wanted to add a link that always points to the latest version of the API docs, aka: api/latest/ should redirect to api/1.28.1/ e. g.
The url is correctly replaced, but the redirect does not happen and I am left with a "Page not found" error. The status code is 200, while I would expect a 301. When reloading the page I am actually presented with the correct document.
Yes.
To Reproduce
- Have a redirect to static content.
Expected behavior
Redirects to the linked page and status code 301.
Actual Behavior
Replaces link correctly, but has status code 200 and content is "Page not found".

Your Environment
- Docusaurus version used: 2.0.0-alpha.63
- Environment name and version (e.g. Chrome 78.0.3904.108, Node.js 10.17.0): Chrome 85.0.4183.83
- Operating system and version (desktop or mobile): macOS 10.15.6
Reproducible Demo
Speaking in docs sources
This is the file that is supposed to induce the redirection:
https://github.com/SAP/cloud-sdk/blob/documentation/src/pages/api/latest.mdx
to e. g. this file https://github.com/SAP/cloud-sdk/blob/documentation/static/api/1.28.1/index.html
Speaking in links
https://sap.github.io/cloud-sdk/api/latest/ should redirect to https://sap.github.io/cloud-sdk/api/1.28.1/
🐛 Bug Report
In our docs, we have API docs listed by version. I wanted to add a link that always points to the latest version of the API docs, aka:
api/latest/should redirect toapi/1.28.1/e. g.The url is correctly replaced, but the redirect does not happen and I am left with a "Page not found" error. The status code is 200, while I would expect a 301. When reloading the page I am actually presented with the correct document.
Have you read the Contributing Guidelines on issues?
Yes.
To Reproduce
Expected behavior
Redirects to the linked page and status code 301.
Actual Behavior
Replaces link correctly, but has status code 200 and content is "Page not found".
Your Environment
Reproducible Demo
Speaking in docs sources
This is the file that is supposed to induce the redirection:
https://github.com/SAP/cloud-sdk/blob/documentation/src/pages/api/latest.mdx
to e. g. this file https://github.com/SAP/cloud-sdk/blob/documentation/static/api/1.28.1/index.html
Speaking in links
https://sap.github.io/cloud-sdk/api/latest/ should redirect to https://sap.github.io/cloud-sdk/api/1.28.1/