diff --git a/arches/app/views/search.py b/arches/app/views/search.py index e0ed9a2bb50..8d2040b0080 100644 --- a/arches/app/views/search.py +++ b/arches/app/views/search.py @@ -371,6 +371,8 @@ def search_results(request, returnDsl=False): ) if response_object: + if returnDsl: + return response_object return JSONResponse(content=response_object) else: