From b3783c9aaa8a103c22ccb71a9da34be842ee299a Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 28 Feb 2023 22:24:35 +0100 Subject: [PATCH] Fix broken links fixes #28 --- src/Library/Contracts/DocumentationPage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}