feat: Add path referral

This commit is contained in:
Nathan Woodburn 2023-11-08 13:30:13 +11:00
parent 2d68de54ac
commit 7c3d101782
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -99,7 +99,7 @@ def catch_all(path):
# # Try with .html
# if os.path.isfile('templates/' + path + '.html'):
# return render_template(path + '.html')
return redirect('/')
return redirect('/?r='+path)
# 404 catch all
@app.errorhandler(404)