Skip to content

Commit

Permalink
[#2497] use url_for to get correct login url
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Jun 8, 2012
1 parent d123870 commit cfaf245
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ckan/lib/repoze_patch.py
Expand Up @@ -8,10 +8,12 @@
from openid.fetchers import setDefaultFetcher, Urllib2Fetcher
from openid.extensions import pape, sreg, ax

import lib.helpers as h

# #1659 fix - logged_out_url prefixed with mount point
def get_full_path(path, environ):
if path.startswith('/'):
path = environ.get('SCRIPT_NAME', '') + path
path = h.url_for(path)
return path

def identify(self, environ):
Expand Down

0 comments on commit cfaf245

Please sign in to comment.