From c4675e6e75ca6e94a865fd3660968e0bfaafeb9a Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Thu, 30 Dec 2021 15:29:56 +0100 Subject: [PATCH] fix 2114: redirect old path --- core/admin/mailu/ui/views/base.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/admin/mailu/ui/views/base.py b/core/admin/mailu/ui/views/base.py index 01e168a1..9b7614e1 100644 --- a/core/admin/mailu/ui/views/base.py +++ b/core/admin/mailu/ui/views/base.py @@ -11,6 +11,10 @@ import flask_login def index(): return flask.redirect(flask.url_for('.user_settings')) +@ui.route('/ui/') +def redirect_old_path(): + return flask.redirect(flask.url_for('.index'), code=301) + @ui.route('/announcement', methods=['GET', 'POST']) @access.global_admin def announcement():