Fix app route redirect issues

pull/1383/head
LASER-Yi 4 years ago
parent 385cc214b3
commit c3c1891f56

@ -57,6 +57,9 @@ login_auth = settings.auth.type
update_notifier()
@app.errorhandler(404)
def page_not_found(e):
return redirect(base_url, code=302)
@app.route('/', defaults={'path': ''})
@app.route('/<path:path>')

Loading…
Cancel
Save