diff --git a/pandora/app/views.py b/pandora/app/views.py
index 13b2a2dd..fa6fb4b6 100644
--- a/pandora/app/views.py
+++ b/pandora/app/views.py
@@ -86,6 +86,8 @@ actions.register(editPage)
def redirect_url(request, url):
if request.META['QUERY_STRING']:
url += "?" + request.META['QUERY_STRING']
- response = HttpResponse()
- response.write(''%url)
- return response
+
+ if settings.CONFIG.get('sendReferrer', False):
+ return redirect(url)
+ else:
+ return HttpResponse(''%json.dumps(url))