docs: avoid using .html extension for blog posts#17090
docs: avoid using .html extension for blog posts#17090kachkaev merged 2 commits intoprettier:mainfrom
.html extension for blog posts#17090Conversation
commit: |
Actually, it was enabled by default, but I found that accessing Do you know if it's possible to always ADD |
|
Hmm, the issue now is the present of the
I've tried messing around with the Another solution would be to leave everything as is, and just edit the links in a few recent GitHub releases. It's highly unlikely, that anyone has recent blog posts bookmarked with the For example: Also, this will be fixed eventually in Docusaurus 4. |
|
Thanks for the investigation,I think we can live with no Without "pretty url", seem that |
Description
Similar to #17079 which removes the
.htmlextension from a lot of existing URLs, this PR aims to remove that for new release blog posts.This is important, because otherwise opening the blog posts from the GitHub release notes renders the page twice. This is known issue in docusaurus that will be fixed in later versions: facebook/docusaurus#10053
For handling old URLs with the
.htmlextension, I enabled Netlify's "Pretty URLs" option, recommended here: facebook/docusaurus#9552 (comment)As an example, opening the blog post for the 3.5 release now in the deploy preview works even with the
.htmlin the URL: https://deploy-preview-17090--prettier.netlify.app/blog/2025/02/09/3.5.0.htmlChecklist
docs/directory).changelog_unreleased/*/XXXX.mdfile followingchangelog_unreleased/TEMPLATE.md.✨Try the playground for this PR✨