From be70841a4a1fef448f65047c74242ce9ff7668fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Demarle?= Date: Thu, 26 Sep 2024 11:56:40 +0200 Subject: [PATCH 1/2] Add a trialing slash to home url --- packages/block-library/src/site-title/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-library/src/site-title/index.php b/packages/block-library/src/site-title/index.php index f90c3a6ac3a6a0..ed54eae1434a65 100644 --- a/packages/block-library/src/site-title/index.php +++ b/packages/block-library/src/site-title/index.php @@ -36,7 +36,7 @@ function render_block_core_site_title( $attributes ) { $site_title = sprintf( '%4$s', - esc_url( home_url() ), + esc_url( home_url( '/' ) ), esc_attr( $link_target ), $aria_current, esc_html( $site_title ) From 11f9a324f51bae8a6ae40edf4db86ac7f14c0313 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Demarle?= Date: Thu, 26 Sep 2024 15:45:35 +0200 Subject: [PATCH 2/2] Add a trailing slash in url in home link block too --- packages/block-library/src/home-link/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-library/src/home-link/index.php b/packages/block-library/src/home-link/index.php index fb7235834459d0..435327dbff43ac 100644 --- a/packages/block-library/src/home-link/index.php +++ b/packages/block-library/src/home-link/index.php @@ -154,7 +154,7 @@ function render_block_core_home_link( $attributes, $content, $block ) { return sprintf( '
  • %4$s
  • ', block_core_home_link_build_li_wrapper_attributes( $block->context ), - esc_url( home_url() ), + esc_url( home_url( '/' ) ), $aria_current, wp_kses_post( $attributes['label'] ) );