mirror of https://github.com/morpheus65535/bazarr
Fix app route redirect issues
This commit is contained in:
parent
385cc214b3
commit
c3c1891f56
|
@ -57,6 +57,9 @@ login_auth = settings.auth.type
|
||||||
|
|
||||||
update_notifier()
|
update_notifier()
|
||||||
|
|
||||||
|
@app.errorhandler(404)
|
||||||
|
def page_not_found(e):
|
||||||
|
return redirect(base_url, code=302)
|
||||||
|
|
||||||
@app.route('/', defaults={'path': ''})
|
@app.route('/', defaults={'path': ''})
|
||||||
@app.route('/<path:path>')
|
@app.route('/<path:path>')
|
||||||
|
|
Loading…
Reference in New Issue