Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions includes/frontend/class-head.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use RankMath\Helper;
use RankMath\Paper\Paper;
use RankMath\Traits\Hooker;
use RankMath\Sitemap\Router;
use MyThemeShop\Helpers\Str;
use RankMath\Helpers\Security;

Expand Down Expand Up @@ -312,7 +311,7 @@ private function adjacent_rel_links_archive() {
}

if ( is_front_page() ) {
$url = Router::get_base_url( '' );
$url = trailingslashit( get_home_url() );
}

if ( $paged > 2 ) {
Expand Down
3 changes: 1 addition & 2 deletions includes/frontend/paper/class-paper.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

use RankMath\Post;
use RankMath\Helper;
use RankMath\Sitemap\Router;
use RankMath\Traits\Hooker;
use MyThemeShop\Helpers\Str;
use MyThemeShop\Helpers\Url;
Expand Down Expand Up @@ -426,7 +425,7 @@ private function get_canonical_paged( $canonical ) {
}

return user_trailingslashit(
trailingslashit( is_front_page() ? Router::get_base_url( '' ) : $canonical ) .
trailingslashit( is_front_page() ? get_home_url() : $canonical ) .
trailingslashit( $wp_rewrite->pagination_base ) .
get_query_var( 'paged' )
);
Expand Down