From a127728603629d9e3621590d53211f8e0eb46d2e Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Fri, 4 Apr 2025 15:19:13 +0200 Subject: [PATCH] Fix trailing slash 404 --- src/anonchat/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/anonchat/__init__.py b/src/anonchat/__init__.py index 90d77a7..6a50ef0 100644 --- a/src/anonchat/__init__.py +++ b/src/anonchat/__init__.py @@ -53,6 +53,8 @@ app.config['SESSION_KEY_PREFIX'] = 'anonchat_session:' app.config['SCHEDULER_API_ENABLED'] = False app.config['SCHEDULER_TIMEZONE'] = 'UTC' +app.url_map.strict_slashes = False + if app.config['BEHIND_PROXY']: app.wsgi_app = ProxyFix(app.wsgi_app, x_for=2)