diff --git a/packages/framework/src/Framework/Actions/PostBuildTasks/GenerateRssFeed.php b/packages/framework/src/Framework/Actions/PostBuildTasks/GenerateRssFeed.php index a7444bf99ad..09df75b7990 100644 --- a/packages/framework/src/Framework/Actions/PostBuildTasks/GenerateRssFeed.php +++ b/packages/framework/src/Framework/Actions/PostBuildTasks/GenerateRssFeed.php @@ -8,6 +8,7 @@ use Hyde\Framework\Features\BuildTasks\PostBuildTask; use Hyde\Framework\Features\XmlGenerators\RssFeedGenerator; +use function Hyde\path_join; use function file_put_contents; class GenerateRssFeed extends PostBuildTask @@ -24,6 +25,6 @@ public function handle(): void public function printFinishMessage(): void { - $this->createdSiteFile(Hyde::getOutputDirectory().'/'.RssFeedGenerator::getFilename())->withExecutionTime(); + $this->createdSiteFile(path_join(Hyde::getOutputDirectory(), RssFeedGenerator::getFilename()))->withExecutionTime(); } } diff --git a/packages/framework/src/Framework/Actions/PostBuildTasks/GenerateSitemap.php b/packages/framework/src/Framework/Actions/PostBuildTasks/GenerateSitemap.php index 087ff6c0b6f..a7aea729abc 100644 --- a/packages/framework/src/Framework/Actions/PostBuildTasks/GenerateSitemap.php +++ b/packages/framework/src/Framework/Actions/PostBuildTasks/GenerateSitemap.php @@ -8,6 +8,7 @@ use Hyde\Framework\Features\BuildTasks\PostBuildTask; use Hyde\Framework\Features\XmlGenerators\SitemapGenerator; +use function Hyde\path_join; use function file_put_contents; class GenerateSitemap extends PostBuildTask @@ -24,6 +25,6 @@ public function handle(): void public function printFinishMessage(): void { - $this->createdSiteFile(Hyde::getOutputDirectory().'/sitemap.xml')->withExecutionTime(); + $this->createdSiteFile(path_join(Hyde::getOutputDirectory(), 'sitemap.xml'))->withExecutionTime(); } }