From bf91b46b55f53d9807a706a455b38ae249acc8d9 Mon Sep 17 00:00:00 2001 From: Florian Bezannier Date: Mon, 21 Jun 2021 23:30:02 +0200 Subject: [PATCH] fix requests_pathname_prefix --- web/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app.py b/web/app.py index 249f23e..fdb3216 100644 --- a/web/app.py +++ b/web/app.py @@ -36,8 +36,8 @@ class MyProxyFix(ProxyFix): self.dash_app.requests_pathname_external_prefix = prefix self.dash_app.config.assets_external_path = prefix else: - self.flask_app.config['APPLICATION_ROOT'] = "/" - self.dash_app.requests_pathname_external_prefix = "/" + self.flask_app.config['APPLICATION_ROOT'] = self.dash_app.config.requests_pathname_prefix + self.dash_app.requests_pathname_external_prefix = self.dash_app.config.requests_pathname_prefix return super().__call__(environ, start_response)