diff --git a/src/Structures/Page.php b/src/Structures/Page.php index f123d76c081..6b10df8e8d7 100644 --- a/src/Structures/Page.php +++ b/src/Structures/Page.php @@ -42,6 +42,7 @@ class Page implements Arrayable, ArrayAccess, Augmentable, Entry, JsonSerializab private $absoluteUrl; private $absoluteUrlWithoutRedirect; private $blueprint; + private $routeData; public function __construct() { @@ -409,7 +410,11 @@ public function structure() public function routeData() { - return $this->entry()->routeData(); + if ($this->routeData !== null) { + return $this->routeData; + } + + return $this->routeData = $this->entry()->routeData(); } public function published()