diff --git a/src/Controller/AppController.php b/src/Controller/AppController.php index 0a6c623..9a3c8c6 100644 --- a/src/Controller/AppController.php +++ b/src/Controller/AppController.php @@ -153,9 +153,11 @@ class AppController extends Controller public function beforeRender(EventInterface $event) { - if (!$this->ParamHandler->isRest()) { - $this->set('breadcrumb', $this->Navigation->getBreadcrumb()); - $this->set('notifications', $this->Notification->getNotifications()); + if (!empty($this->request->getAttribute('identity'))) { + if (!$this->ParamHandler->isRest()) { + $this->set('breadcrumb', $this->Navigation->getBreadcrumb()); + $this->set('notifications', $this->Notification->getNotifications()); + } } }