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>
master
bors[bot] 3 years ago committed by GitHub
commit 3eca813182
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save