[wp-trac] [WordPress Trac] #20385: /2012/03/individual-post/?page=2 canonical redirects not properly handled
WordPress Trac
wp-trac at lists.automattic.com
Wed Apr 11 16:43:46 UTC 2012
#20385: /2012/03/individual-post/?page=2 canonical redirects not properly handled
--------------------------+--------------------------
Reporter: markjaquith | Owner: markjaquith
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 3.4
Component: Canonical | Version:
Severity: normal | Resolution:
Keywords: |
--------------------------+--------------------------
Changes (by batmoo):
* cc: batmoo@… (added)
* status: closed => reopened
* resolution: fixed =>
Comment:
This breaks pagination on sites with static front pages:
http://example.com/page/2/ gets redirected to http://example.com/2/
Adding a front page check seems to fix that:
{{{if ( is_singular() && ! is_front_page() && get_query_var('page') ) {}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20385#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list