chg: [appController] Don't generate nav breadcrumbs in API context

pull/93/head
Sami Mokaddem 2022-01-20 09:31:51 +01:00
parent 6be08e3100
commit 2e0051401f
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 3 additions and 1 deletions

View File

@ -150,7 +150,9 @@ class AppController extends Controller
public function beforeRender(EventInterface $event)
{
$this->set('breadcrumb', $this->Navigation->getBreadcrumb());
if (!$this->ParamHandler->isRest()) {
$this->set('breadcrumb', $this->Navigation->getBreadcrumb());
}
}
private function authApiUser(): void