Opened 14 years ago
Closed 14 years ago
#20385 closed defect (bug) (fixed)
/2012/03/individual-post/?page=2 canonical redirects not properly handled
| Reported by: | markjaquith | Owned by: | markjaquith |
|---|---|---|---|
| Priority: | high | Milestone: | 3.4 |
| Component: | Canonical | Version: | 3.4 |
| Severity: | blocker | Keywords: | |
| Cc: | Focuses: |
Description
Multipage posts don't have their ?page=X parameter properly redirected to a /X/ URL.
Change History (7)
#2
@
14 years ago
- Cc added
- Resolution fixed
- Status closed → reopened
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') ) {
#4
@
14 years ago
- Keywords needs-unit-tests added
- Priority normal → high
- Severity normal → blocker
- Status reopened → accepted
- Version → 3.4
I'll work on this tonight. Needs unit tests!
#6
@
14 years ago
Okay, I tried. But our canonical redirect unit tests appear to be fundamentally broken. They simulate an HTTP request. Poorly. I couldn't get the test to fail, even at [20443].
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In [20397]: