Skip to content

Commit

Permalink
Add missing return
Browse files Browse the repository at this point in the history
  • Loading branch information
Zharktas committed Aug 10, 2017
1 parent 94f4c0b commit 5fcf2bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/lib/helpers.py
Expand Up @@ -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
Expand Down

0 comments on commit 5fcf2bf

Please sign in to comment.