From 73d585dcadcfd647306c3f6d2d3a91475d4b146b Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Sun, 5 Nov 2023 13:14:19 +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 */