Skip to content

Commit

Permalink
Merge pull request #599 from google/fix/312-empty-path
Browse files Browse the repository at this point in the history
Fix admin bar menu to show for home page latest posts as expected
  • Loading branch information
felixarntz authored Sep 26, 2019
2 parents 3e9c6ef + e2992a0 commit ff0bcb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public function get_reference_canonical() {

// Handle the home page URL.
if ( is_front_page() ) {
return $this->get_reference_site_url();
return user_trailingslashit( $this->get_reference_site_url() );
} elseif ( is_home() ) {
return $this->get_reference_permalink( get_option( 'page_for_posts' ) );
}
Expand Down

0 comments on commit ff0bcb7

Please sign in to comment.