Opened 11 years ago
Closed 11 years ago
#35455 closed defect (bug) (duplicate)
The problem with navigation on the home page
| Reported by: | Cawa-93 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Canonical | Version: | 4.4.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
The error occurs if I as a home page set a static page. And on this page is an arbitrary selection of posts and pagination.
If you try to go to the next page navigation triggered redirection to home.
I think the problem here:
/wp-includes/canonical.php:175-176
I propose to add a check for page navigation options:
<?php ... elseif ( is_page() && !is_feed() && isset($wp_query->queried_object) && 'page' == get_option('show_on_front') && $wp_query->queried_object->ID == get_option('page_on_front') && empty($wp_query->query['paged']) && ! $redirect_url ) { $redirect_url = home_url('/'); } elseif ...
Change History (1)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi, and welcome to Trac!
We are already tracking this in #35344 (which also has a patch you may want to test if you'd like to).