From 5fcf2bf68afd398fc6c64bfa166731909ecd555b Mon Sep 17 00:00:00 2001 From: Jari Voutilainen Date: Thu, 10 Aug 2017 16:27:32 +0300 Subject: [PATCH] Add missing return --- ckan/lib/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckan/lib/helpers.py b/ckan/lib/helpers.py index a1438dd08a9..1ffa5943b41 100644 --- a/ckan/lib/helpers.py +++ b/ckan/lib/helpers.py @@ -160,7 +160,7 @@ def redirect_to(*args, **kw): # If args contain full url eg. http://example.com or url starting with root_path skip url parsing if args and (is_url(args[0]) or ( root_path and args[0].startswith(root_path))) : - _routes_redirect_to(args[0]) + return _routes_redirect_to(args[0]) if are_there_flash_messages(): kw['__no_cache__'] = True