Browse Source

Fix redirect url in new_topic

Peter Justin 9 years ago
parent
commit
8b82ac7719
1 changed files with 1 additions and 1 deletions
  1. 1 1
      flaskbb/forum/views.py

+ 1 - 1
flaskbb/forum/views.py

@@ -179,7 +179,7 @@ def new_topic(forum_id, slug=None):
     if not Permission(CanPostTopic):
         flash(_("You do not have the permissions to create a new topic."),
               "danger")
-        return redirect(forum.url)
+        return redirect(forum_instance.url)
 
     form = NewTopicForm()
     if request.method == "POST":