diff --git a/src/Request/ContaoPageContextInitializer.php b/src/Request/ContaoPageContextInitializer.php index bd67a8a..5b088ab 100644 --- a/src/Request/ContaoPageContextInitializer.php +++ b/src/Request/ContaoPageContextInitializer.php @@ -116,6 +116,7 @@ public function initialize(PageContext $context, Request $request): void $this->framework->initialize(); $this->initializeUserLoggedInConstants(); $this->initializeGlobals($context); + $request->attributes->set('pageModel', $context->page()); $this->initializeLocale($context, $request); $this->initializeStaticUrls(); $this->initializePageLayout($context);