feat: Add redirects for old pages
All checks were successful
Build Docker / Build Image (push) Successful in 54s
All checks were successful
Build Docker / Build Image (push) Successful in 54s
This commit is contained in:
16
server.py
16
server.py
@@ -435,6 +435,22 @@ def catch_all(path):
|
||||
|
||||
return render_template('404.html'), 404
|
||||
|
||||
|
||||
# Redirects
|
||||
@app.route('/contact')
|
||||
def contact():
|
||||
return redirect('/#contact')
|
||||
|
||||
@app.route('/about')
|
||||
def about():
|
||||
return redirect('/#about')
|
||||
|
||||
@app.route('/support')
|
||||
@app.route('/donate')
|
||||
def donate():
|
||||
return redirect('/#support')
|
||||
|
||||
|
||||
# 404 catch all
|
||||
@app.errorhandler(404)
|
||||
def not_found(e):
|
||||
|
||||
Reference in New Issue
Block a user