don't generate box details for json calls (#25541)

This commit is contained in:
Frédéric Péters 2018-07-29 22:42:42 +02:00
parent c6d5ae604a
commit 46f212eafc
1 changed files with 1 additions and 1 deletions

View File

@ -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')