feat: Add path referral
This commit is contained in:
parent
2d68de54ac
commit
7c3d101782
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user