Browse files

Fix: attempt to fix `redirect` (behind a proxy)

  • Loading branch information...
1 parent c3cbe62 commit b1dbe5c688788a5828bfc60473ac59559c19faef @hsk81 committed Jan 19, 2014
Showing with 2 additions and 1 deletion.
  1. +2 −1 webed/views/contact.py
View
3 webed/views/contact.py
@@ -6,6 +6,7 @@
from flask import Blueprint
from flask import redirect
from flask import request
+from flask import url_for
from flask.ext.mail import Message
@@ -40,7 +41,7 @@ def feedback ():
message.body = text
mailer.send (message)
- return redirect ('/contact/')
+ return redirect (url_for ('page.contact'))
###############################################################################
###############################################################################

0 comments on commit b1dbe5c

Please sign in to comment.