Permalink
Browse files

Fixed the url_for_* helpers when both SCRIPT_NAME and ckan.root_path …

…are defined
  • Loading branch information...
LaurentGoderre committed Apr 1, 2016
1 parent ae47bca commit 9cf0369865fc355ef5fe6f714ac3a159830be58f
Showing with 4 additions and 0 deletions.
  1. +4 −0 ckan/lib/base.py
View
@@ -206,6 +206,10 @@ def __before__(self, action, **params):
'new_activities',
'Use `h.new_activities` instead.')
# Prevents the variable interfering with the root_path logic
if 'SCRIPT_NAME' in request.environ:
request.environ['SCRIPT_NAME'] = ''
def _identify_user(self):
'''Try to identify the user
If the user is identified then:

0 comments on commit 9cf0369

Please sign in to comment.