From d81a2abed260bd693985910be5066ee142735e64 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 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/framework/src/Framework/Features/Documentation/DocumentationSearchPage.php b/packages/framework/src/Framework/Features/Documentation/DocumentationSearchPage.php index e16fe950279..ed91c2c87f1 100644 --- a/packages/framework/src/Framework/Features/Documentation/DocumentationSearchPage.php +++ b/packages/framework/src/Framework/Features/Documentation/DocumentationSearchPage.php @@ -8,11 +8,10 @@ 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; -use function ltrim; - /** * @internal This page is used to render the search page for the documentation. * @@ -51,7 +50,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