diff options
author | rubenwardy <rw@rubenwardy.com> | 2019-11-21 19:38:26 +0000 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2019-11-21 19:38:32 +0000 |
commit | 39d4cf362b74d9c62b05c1a273de749b18368a12 (patch) | |
tree | b62c6ca3a6e15f7d543f1aca089b2fb34928312a /app/blueprints/threads/__init__.py | |
parent | b977a42738d4f4264108040221b234dd4a0f4a0a (diff) | |
download | cheatdb-39d4cf362b74d9c62b05c1a273de749b18368a12.tar.xz |
Fix url_for crash on "home_page"v1.19.0
Diffstat (limited to 'app/blueprints/threads/__init__.py')
-rw-r--r-- | app/blueprints/threads/__init__.py | 6 |
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": |