chg: [appController] Don't generate nav breadcrumbs in API context
parent
6be08e3100
commit
2e0051401f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue