diff --git a/src/Library/Contracts/DocumentationPage.php b/src/Library/Contracts/DocumentationPage.php index 79fa602..a141e49 100644 --- a/src/Library/Contracts/DocumentationPage.php +++ b/src/Library/Contracts/DocumentationPage.php @@ -58,7 +58,7 @@ public function __construct($file, string $route, PageContent $content, bool $is $this->route = ""; } else { if ($content->path) { - $this->route = $content->path; + $this->route = "/" . $content->path; } else { $this->route = "/$route"; } @@ -111,4 +111,4 @@ private function getPageTitle(string $filePath): string return $title; } -} \ No newline at end of file +}