From 7c3d101782da6994a69d58e180da5dafc6bfe30e Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Wed, 8 Nov 2023 13:30:13 +1100 Subject: [PATCH] feat: Add path referral --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 4335847..b04ded1 100644 --- a/main.py +++ b/main.py @@ -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)