-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
Allow using extension-less URLs #413
Comments
Hi @julen - I agree we should support this. Thanks! |
Hi, I think I've addressed this issue in the referenced issue above! Please feel free to take a look! |
For some reason, http://localhost:3000/blog/.../introducing-docusaurus/index.html Other than that, every page still works the same with extensions, and every page (except this /blog one) works without the .html extension! |
Re-post of my comment in #515 in case anyone wants to take this up in future:
|
Hi, I wanted to try working on this. |
Is this a bug report?
No.
Have you read the Contributing Guidelines?
Yes.
Environment
Any.
Expected Behavior
Since Docusaurus has been designed to work well with GitHub Pages, it would be ideal if the links it generates via markdown references also supported extension-less URLs.
Note GitHub supports this out-of-the box: simply remove the
.html
suffix from any published pages and it just works.Actual Behavior
Docusaurus always creates links with the
.html
extension appended, and there is no way to change that.In practical terms, this means there's no chance of using GitHub Pages' feature of removing file extension suffixes from URLs without sacrificing consistency.
Reproducible Demo
Example:
As a side note, also note how
index.html
can also be removed (which in conjunction with #323 would allow for clean URLs):The text was updated successfully, but these errors were encountered: