Browse Source

fixed redirection on home url while using an url prefix

Jocelyn Delande 10 years ago
parent
commit
2fce3a0d7a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      backend.py

+ 1 - 1
backend.py

@@ -76,7 +76,7 @@ app = Bottle()
 
 @app.route('/')
 def home():
-     redirect("/wifi-form")
+     redirect(urlparse.urljoin(request.path,join(URL_PREFIX, 'wifi-form')))
 
 @app.route('/wifi-form')
 def show_wifi_form():