Skip to content
New issue

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

Routes including index.html are broken #2392

Closed
rlamana opened this issue Mar 9, 2020 · 0 comments · Fixed by #2393
Closed

Routes including index.html are broken #2392

rlamana opened this issue Mar 9, 2020 · 0 comments · Fixed by #2393
Labels
bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers

Comments

@rlamana
Copy link
Contributor

rlamana commented Mar 9, 2020

🐛 Bug Report

In v1 URLs with and without index.html properly route to the same page. In v2 URLs including index.html will result in a "Page not found". react-router should use a pattern that matches both URLs.

Have you read the Contributing Guidelines on issues?

Yes.

To Reproduce

  1. Navigate to https://v2.docusaurus.io/docs/introduction, the page should load normally.
  2. Navigate to https://v2.docusaurus.io/docs/introduction/index.html, "Page not found" is displayed.

Expected behavior

Both https://v2.docusaurus.io/docs/introduction and https://v2.docusaurus.io/docs/introduction/index.html should take the user to the same page.

Actual Behavior

https://v2.docusaurus.io/docs/introduction/index.html renders this:
Screenshot 2020-03-09 at 16 06 34

Your Environment

  • Docusaurus version used: 2.0.0-alpha.48
  • Environment name and version (e.g. Chrome 78.0.3904.108, Node.js 10.17.0): Node.js v10.19.0
  • Operating system and version (desktop or mobile): MacOS X Catalina 10.15.2
@rlamana rlamana added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Mar 9, 2020
@lex111 lex111 added this to the v2.0.0-alpha.49 milestone Mar 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants