Opened 6 years ago
Last modified 2 years ago
#46061 new defect (bug)
Canonical prevents accessing paginated results of feed-named tags
Reported by: | dd32 | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 2.7.1 |
Component: | Canonical | Keywords: | needs-patch |
Focuses: | Cc: |
Description
Given a tag of the name 'rss' (or any of (feed|rss|rdf|atom|rss2)
) Canonical will cause a redirect for a paginated result to an incorrect url lacking the 'rss'
For example:
$ curl -Is http://wordpress.dev/tag/rss/page/2/ | grep Location Location: http://wordpress.dev/tag/page/2/
This appears to be caused by https://core.trac.wordpress.org/browser/trunk/src/wp-includes/canonical.php?rev=43571&marks=297-302#L290
This was originally reported as https://meta.trac.wordpress.org/ticket/2945
Attachments (1)
Change History (6)
This ticket was mentioned in Slack in #slackhelp by tobifjellner. View the logs.
6 years ago
Note: See
TracTickets for help on using
tickets.
attachment:46061-tests.diff adds unit test cases to reproduce the problem. Example output:
Note that this is a similar bug to #39535.