[wp-trac] Re: [WordPress Trac] #8098: trailing p's removed from
query by canonical redirect
WordPress Trac
wp-trac at lists.automattic.com
Sat Nov 8 01:27:11 GMT 2008
#8098: trailing p's removed from query by canonical redirect
---------------------+------------------------------------------------------
Reporter: DD32 | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.7
Component: General | Version: 2.7
Severity: normal | Resolution:
Keywords: |
---------------------+------------------------------------------------------
Comment (by DD32):
> attachment 8098.2.diff added.
* Do not replace it if it is followed by a word character
* 'p=' => ''
* 'tag=php&p=' => 'tag=php'
* 'tag=php' => 'tag=php'
* 'p=&tag=php' => 'p=&tag=php' (This case didnt work before either)
{{{'#^&?(p|page_id|cat|tag)=?$#'}}}
That wouldnt work either, that requires that the param be the first on the
line, whereas i believe its supposed to cleanup trailing items too
--
Ticket URL: <http://trac.wordpress.org/ticket/8098#comment:5>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list