starlight-links-validator icon indicating copy to clipboard operation
starlight-links-validator copied to clipboard

Enforce trailing slashes for internal links

Open pmig opened this issue 4 months ago • 1 comments

Is your feature request related to a problem?

SEO tools are often confused if urls don't match the canonical url (even if it is just a trailing slash)

Describe the solution you'd like

We want to consistently set all urls with trailing slashes (/)

Describe alternatives you've considered

No response

Additional Context

No response

pmig avatar Aug 07 '25 08:08 pmig

Thanks for your feedback.

Are you using the Astro trailingSlash option set to always? When doing so, you should get an error for content links missing a trailing slash while also ensuring that Starlight generated pages do the same.

HiDeoo avatar Aug 08 '25 08:08 HiDeoo