WordPress.org

Make WordPress Core

Opened 5 months ago

Last modified 5 months 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:
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

Change History (1)

This ticket was mentioned in Slack in #slackhelp by tobifjellner. View the logs.


5 months ago

Note: See TracTickets for help on using tickets.