From 91848a82c36b71a7c0586873df584949e9b7dc79 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Mon, 18 Dec 2023 19:19:52 +0100 Subject: [PATCH] Use the RouteKey helper --- .../Features/Documentation/DocumentationSearchPage.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/framework/src/Framework/Features/Documentation/DocumentationSearchPage.php b/packages/framework/src/Framework/Features/Documentation/DocumentationSearchPage.php index e16fe950279..7e8d0d143be 100644 --- a/packages/framework/src/Framework/Features/Documentation/DocumentationSearchPage.php +++ b/packages/framework/src/Framework/Features/Documentation/DocumentationSearchPage.php @@ -8,6 +8,7 @@ use Hyde\Pages\InMemoryPage; use Hyde\Pages\DocumentationPage; use Hyde\Pages\Concerns\HydePage; +use Hyde\Support\Models\RouteKey; use Hyde\Framework\Actions\StaticPageBuilder; use Hyde\Facades\Config; @@ -51,7 +52,7 @@ public static function enabled(): bool public static function routeKey(): string { - return ltrim(DocumentationPage::outputDirectory().'/search', '/'); + return RouteKey::fromPage(DocumentationPage::class, 'search')->get(); } protected static function anotherSearchPageExists(): bool