Fixed index page redirecting
This commit is contained in:
parent
d60ec051e0
commit
c1b74bb35f
1 changed files with 2 additions and 0 deletions
|
@ -66,6 +66,8 @@ def verifycert():
|
||||||
|
|
||||||
@app.route('/<path:path>')
|
@app.route('/<path:path>')
|
||||||
def catch_all(path):
|
def catch_all(path):
|
||||||
|
if path == '':
|
||||||
|
return flask.redirect('https://halhadus.rocks')
|
||||||
if not path == 'musicstatus.html' or not path == 'verifykey':
|
if not path == 'musicstatus.html' or not path == 'verifykey':
|
||||||
return flask.redirect(f'https://halhadus.rocks/{path}')
|
return flask.redirect(f'https://halhadus.rocks/{path}')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue