Strip trailing punctuation with canonical URLs
|Reported by:||nacin||Owned by:||joostdevalk|
|Component:||Canonical||Keywords:||has-patch dev-feedback has-unit-tests|
A follow-up to #7537 where we removed %20 and " " from the end of URLs, we should try to remove all sorts of punctuation from the end of a URL, both URL-encoded and decoded.
Example bad URLs we should surely be able to resolve:
More difficult when there is no trailing slash in the permalink structure (or the link requested, regardless of permalink structure), but if is_404() is taken into account, it should be doable to trail various pieces of punctuation and see if we can get things to resolve.
Change History (7)
3 years ago
- Keywords has-patch reporter-feedback added
- Owner set to joostdevalk
- Status changed from new to accepted