aboutsummaryrefslogtreecommitdiff
path: root/app/blueprints/threads/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/blueprints/threads/__init__.py')
-rw-r--r--app/blueprints/threads/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/blueprints/threads/__init__.py b/app/blueprints/threads/__init__.py
index 0eee201..73d64c2 100644
--- a/app/blueprints/threads/__init__.py
+++ b/app/blueprints/threads/__init__.py
@@ -87,7 +87,7 @@ def view(id):
if package:
return redirect(package.getDetailsURL())
else:
- return redirect(url_for("home_page"))
+ return redirect(url_for("homepage.home"))
if len(comment) <= 500 and len(comment) > 3:
reply = ThreadReply()
@@ -150,7 +150,7 @@ def new():
# Check that user can make the thread
if not package.checkPerm(current_user, Permission.CREATE_THREAD):
flash("Unable to create thread!", "error")
- return redirect(url_for("home_page"))
+ return redirect(url_for("homepage.home"))
# Only allow creating one thread when not approved
elif is_review_thread and package.review_thread is not None:
@@ -163,7 +163,7 @@ def new():
if package:
return redirect(package.getDetailsURL())
else:
- return redirect(url_for("home_page"))
+ return redirect(url_for("homepage.home"))
# Set default values
elif request.method == "GET":