diff --git a/app/templates/user/show_profile.html b/app/templates/user/show_profile.html
index 6ca82907..fa248dc3 100644
--- a/app/templates/user/show_profile.html
+++ b/app/templates/user/show_profile.html
@@ -98,17 +98,23 @@
{% if user_access('ban users', current_user.id) %}
-
+ {% if user.banned %}
+
+ {% else %}
+
+ {% endif %}
{% endif %}
{% if user_access('manage users', current_user.id) %}
-
-
+
+
{% endif %}
diff --git a/app/user/routes.py b/app/user/routes.py
index 2fc33a90..f86d7754 100644
--- a/app/user/routes.py
+++ b/app/user/routes.py
@@ -102,7 +102,32 @@ def ban_profile(actor):
else:
abort(401)
- return redirect(f'/u/{actor}')
+ goto = request.args.get('redirect') if 'redirect' in request.args else f'/u/{actor}'
+ return redirect(goto)
+
+
+@bp.route('/u/