feat: Add path referral
This commit is contained in:
2
main.py
2
main.py
@@ -99,7 +99,7 @@ def catch_all(path):
|
|||||||
# # Try with .html
|
# # Try with .html
|
||||||
# if os.path.isfile('templates/' + path + '.html'):
|
# if os.path.isfile('templates/' + path + '.html'):
|
||||||
# return render_template(path + '.html')
|
# return render_template(path + '.html')
|
||||||
return redirect('/')
|
return redirect('/?r='+path)
|
||||||
|
|
||||||
# 404 catch all
|
# 404 catch all
|
||||||
@app.errorhandler(404)
|
@app.errorhandler(404)
|
||||||
|
|||||||
Reference in New Issue
Block a user