mirror of
https://github.com/Mailu/Mailu.git
synced 2025-01-30 04:30:49 +02:00
Merge #2116
2116: fix 2114: redirect old path r=mergify[bot] a=nextgens ## What type of PR? bug-fix ## What does this PR do? Old paths may still be cached in browsers, it's easy enough to redirect them ### Related issue(s) - close #2114 Co-authored-by: Florent Daigniere <nextgens@freenetproject.org>
This commit is contained in:
commit
3eca813182
@ -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():
|
||||
|
Loading…
x
Reference in New Issue
Block a user