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