diff --git a/src/Writing/Writer.php b/src/Writing/Writer.php index 1f815f7b..63d7edfc 100644 --- a/src/Writing/Writer.php +++ b/src/Writing/Writer.php @@ -283,7 +283,7 @@ protected function moveOutputFromSourceFolderToTargetFolder(): void $contents = str_replace('href="css/style.css"', 'href="/docs/css/style.css"', $contents); $contents = str_replace('src="js/all.js"', 'src="/docs/js/all.js"', $contents); $contents = str_replace('src="images/', 'src="/docs/images/', $contents); - $contents = preg_replace('#href="https?://.+?/docs/collection.json"#', 'href="{{ route("apidoc", ["format" => ".json"]) }}"', $contents); + $contents = preg_replace('#href="https?://.+?/docs/collection.json"#', 'href="{{ route("apidoc.json") }}"', $contents); file_put_contents("$this->outputPath/index.blade.php", $contents); } }