don't generate box details for json calls (#25541)
This commit is contained in:
parent
c6d5ae604a
commit
46f212eafc
|
@ -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')
|
||||
|
|
Reference in New Issue