satnaing / astro-paper

A minimal, accessible and SEO-friendly Astro blog theme
https://astro-paper.pages.dev/
MIT License
2.39k stars 502 forks source link

feat: all posts link end with / #246

Closed ccbikai closed 8 months ago

ccbikai commented 8 months ago

Both the canonical and RSS article URLs end with "/", for consistency with the standard, it is best to use "/" at the end of the article URL.

Otherwise, there will be an additional 308 redirect. CleanShot 2024-01-24 at 13 17 08@2x

satnaing commented 8 months ago

Yes. You're right. Besides your updates, I found that other links also need to have trailing slash in order to prevent unnecessary redirects. Thanks for pointing this out.