Remove = from base search page URL

Apparently, LiteSpeed Cache doesn't like that.
This commit is contained in:
Tetrakern 2024-10-17 13:39:35 +02:00
parent e15226da6c
commit 0304d228ae
2 changed files with 2 additions and 2 deletions

View File

@ -2398,7 +2398,7 @@ function fictioneer_render_icon_menu( $args ) {
if ( $location === 'in-navigation' && FICTIONEER_SHOW_SEARCH_IN_MENUS ) {
$output['search'] = sprintf(
'<div class="menu-item menu-item-icon"><a href="%1$s" title="%2$s" rel="nofollow" aria-label="%3$s"><i class="fa-solid fa-magnifying-glass"></i></a></div>',
esc_url( home_url( '/?s=' ) ),
esc_url( home_url( '/?s' ) ),
esc_attr__( 'Search Page', 'fictioneer' ),
esc_attr__( 'Link to search page', 'fictioneer' )
);

View File

@ -385,7 +385,7 @@ function fictioneer_mobile_user_menu() {
if ( FICTIONEER_SHOW_SEARCH_IN_MENUS ) {
$output['search'] = sprintf(
'<a href="%s" rel="nofollow"><i class="fa-solid fa-magnifying-glass mobile-menu__item-icon"></i> %s</a>',
esc_url( home_url( '/?s=' ) ),
esc_url( home_url( '/?s' ) ),
__( 'Search', 'fictioneer' )
);
}