From 46f212eafca089c3cfd294820348e189f3c06a8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sun, 29 Jul 2018 22:42:42 +0200 Subject: [PATCH] don't generate box details for json calls (#25541) --- auquotidien/modules/root.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auquotidien/modules/root.py b/auquotidien/modules/root.py index eb37336..f4c4fab 100644 --- a/auquotidien/modules/root.py +++ b/auquotidien/modules/root.py @@ -808,7 +808,7 @@ class AlternateRootDirectory(OldRootDirectory): response.filter = {} response.filter['auquotidien'] = True - if not path or path[0] not in ('api', 'backoffice'): + if not path or (path[0] not in ('api', 'backoffice') and not get_request().is_json()): # api & backoffice have no use for a side box response.filter['gauche'] = self.box_side(path) response.filter['keywords'] = template.get_current_theme().get('keywords')