diff --git a/CHANGELOG.md b/CHANGELOG.md index e1ebd5ba40..1a1e655a60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ 1. [](#improved) * Add more controls over HTML5 video attributes (autoplay, poster, loop controls) [#1442](https://github.com/getgrav/grav/pull/1442) + * Removed logging statement for invalid slug [#1459](https://github.com/getgrav/grav/issues/1459) 1. [](#bugfix) * Fix to force route/redirect matching from the start of the route by default [#1446](https://github.com/getgrav/grav/issues/1446) diff --git a/system/src/Grav/Common/Page/Page.php b/system/src/Grav/Common/Page/Page.php index 41e177cf0a..fc3dc1d6cb 100644 --- a/system/src/Grav/Common/Page/Page.php +++ b/system/src/Grav/Common/Page/Page.php @@ -1497,9 +1497,6 @@ public function slug($var = null) { if ($var !== null && $var !== "") { $this->slug = $var; - if (!preg_match('/^[a-z0-9][-a-z0-9]*$/', $this->slug)) { - Grav::instance()['log']->notice("Invalid slug set in YAML frontmatter: " . $this->rawRoute() . " => " . $this->slug); - } } if (empty($this->slug)) {