Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#35455 closed defect (bug) (duplicate)

The problem with navigation on the home page

Reported by: cawa-93's profile Cawa-93 Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.4.1
Component: Canonical Keywords:
Focuses: Cc:


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:


I propose to add a check for page navigation options:

... 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)

#1 @Clorith
8 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

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).

Note: See TracTickets for help on using tickets.