Skip to content

Commit

Permalink
Use the RouteKey helper
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Dec 18, 2023
1 parent 83cfa5a commit d81a2ab
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d81a2ab

Please sign in to comment.