Skip to content

Commit

Permalink
Fix: Wrong urls on mod_proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
RuudBurger committed Nov 20, 2010
1 parent f7c4fc7 commit 6335dd5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/controllers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ def url(*args, **kwargs):
return cherrypy.url(routes.url_for(*args, **kwargs), base = base())

def redirect(url):
url = url if url else base()
b = base()
if b:
url = '/' + url.lstrip(b) if url else b
else:
url = url if url else b
raise cherrypy.HTTPRedirect(url)

class BaseController:
Expand Down

0 comments on commit 6335dd5

Please sign in to comment.