[wp-trac] [WordPress Trac] #46061: Canonical prevents accessing paginated results of feed-named tags
WordPress Trac
noreply at wordpress.org
Tue Jan 22 05:41:38 UTC 2019
#46061: Canonical prevents accessing paginated results of feed-named tags
--------------------------+-----------------------------
Reporter: dd32 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Canonical | Version:
Severity: normal | Keywords: needs-patch
Focuses: |
--------------------------+-----------------------------
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
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46061>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list