[wp-trac] [WordPress Trac] #18034: Incorrect URL for second page of search results

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 12 20:45:51 UTC 2011


#18034: Incorrect URL for second page of search results
--------------------------+------------------
 Reporter:  mark.waters   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.3
Component:  Multisite     |     Version:  3.2
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------

Comment (by SergeyBiryukov):

 Replying to [comment:5 SergeyBiryukov]:
 > * For some reason, canonical redirect from ?s=test to /?s=test only
 happens on the main site.

 Turned out there's no canonical redirect on the main site too. The slash
 is added by browser (on a sub-domain install) or Apache (on a sub-
 directory install).

 [attachment:18034.2.patch] is an attempt to consistently perform a
 redirect for all sites in the network.

 [attachment:18034.3.patch] also fixes the third issue. Looks like we don't
 need `trailingslashit()` here, as the slash is then removed by the second
 `preg_replace()`.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18034#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list