From 5b804b49969c46fa9b44da0293b542b28827ea0e Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Mon, 6 Nov 2023 12:44:14 +0100 Subject: [PATCH] Unslash documentation page home route name This fixes a bug where the sidebar header brand is not clickable when setting the documentation page output path to `''`. --- packages/framework/src/Pages/DocumentationPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/framework/src/Pages/DocumentationPage.php b/packages/framework/src/Pages/DocumentationPage.php index 2dd04b03394..c9df40fe15c 100644 --- a/packages/framework/src/Pages/DocumentationPage.php +++ b/packages/framework/src/Pages/DocumentationPage.php @@ -36,7 +36,7 @@ public static function home(): ?Route public static function homeRouteName(): string { - return static::baseRouteKey().'/index'; + return unslash(static::baseRouteKey().'/index'); } /** @see https://hydephp.com/docs/1.x/documentation-pages#automatic-edit-page-button */