Skip to content

Commit

Permalink
Add missing return
Browse files Browse the repository at this point in the history
  • Loading branch information
Zharktas authored and tino097 committed Sep 26, 2017
1 parent 0a711fd commit f1fcb24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/lib/helpers.py
Expand Up @@ -155,7 +155,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 f1fcb24

Please sign in to comment.