[wp-trac] [WordPress Trac] #17661: Appending date & author based query vars to a permalink overrides the permalink
WordPress Trac
wp-trac at lists.automattic.com
Thu Jun 2 11:05:06 UTC 2011
#17661: Appending date & author based query vars to a permalink overrides the
permalink
--------------------------+----------------------------
Reporter: dd32 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Canonical | Version: 3.1
Severity: normal | Keywords: needs-patch
--------------------------+----------------------------
Some canonical code branches are not properly accounting for extra query
variables being specified via the url.
For example, these url's are not handled properly:
{{{
/2008/?author=1 redirects to /author/admin/
/author/admin/?year=2008 redirects to /year/2008/
/category/uncategorized/?year=2008 redirects to /2008/
}}}
This happens with most date based branches, as once a higher priority
canonical rule is hit, the permalink component is ignored.
The canonical code includes a branch to add any "forgotten" `$_GET`
variables back onto the url, however this doesn't help when it's the
rewritten variables are being lost.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17661>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list