diff --git a/system/src/Grav/Common/Page/Page.php b/system/src/Grav/Common/Page/Page.php index 83b7a0588..5d53764f4 100644 --- a/system/src/Grav/Common/Page/Page.php +++ b/system/src/Grav/Common/Page/Page.php @@ -1224,6 +1224,15 @@ class Page return $this->route; } + /** + * Helper method to clear the route out so it regenerates next time you use it + */ + public function unsetRoute() + { + unset($this->route); + + } + public function rawRoute($var = null) { if ($var !== null) {