diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 5e075dcdba1..2bd9f25e0cb 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -13,7 +13,7 @@ This serves two purposes: - for new features. ### Changed -- for changes in existing functionality. +- Shortened the path printed to console when using dashboard to create a page in https://github.com/hydephp/develop/pull/1492 ### Deprecated - for soon-to-be removed features. diff --git a/packages/realtime-compiler/src/Http/DashboardController.php b/packages/realtime-compiler/src/Http/DashboardController.php index 56fc7e56b82..7e474a9ec83 100644 --- a/packages/realtime-compiler/src/Http/DashboardController.php +++ b/packages/realtime-compiler/src/Http/DashboardController.php @@ -357,7 +357,7 @@ protected function createPage(): void $this->abort($exception->getCode(), $exception->getMessage()); } - $this->writeToConsole(sprintf("Created file '%s'", $path), 'dashboard@createPage'); + $this->writeToConsole(sprintf("Created file '%s'", Hyde::pathToRelative($path)), 'dashboard@createPage'); $this->flash('justCreatedPage', RouteKey::fromPage($pageClass, $pageClass::pathToIdentifier($path))->get()); $this->setJsonResponse(201, "Created file '$path'!");