diff --git a/files/routes/subs.py b/files/routes/subs.py index 87e8d0a60..29d147c87 100644 --- a/files/routes/subs.py +++ b/files/routes/subs.py @@ -390,7 +390,7 @@ def create_sub2(v): for admin in admins: send_repeatable_notification(admin, f":!marseyparty: /h/{sub} has been created by @{v.username} :marseyparty:") - return {"message": f"/h/{sub} created successfully!"} + return redirect(f"/h/{sub}") @app.post("/kick/") @limiter.limit('1/second', scope=rpath) diff --git a/files/templates/sub/create_hole.html b/files/templates/sub/create_hole.html index 28262a076..d819b21f4 100644 --- a/files/templates/sub/create_hole.html +++ b/files/templates/sub/create_hole.html @@ -1,7 +1,7 @@ {% extends "default.html" %} {% block pagetitle %}Create a {{HOLE_NAME}}{% endblock %} {% block content %} -
+