From 34f34130c6b3fdc688af68c5c69270500162c0a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Sun, 23 Feb 2020 21:55:09 -0500 Subject: [PATCH] WIP --- bazarr/app.py | 4 ++-- views/_main.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bazarr/app.py b/bazarr/app.py index 18318477a..f24f821e4 100644 --- a/bazarr/app.py +++ b/bazarr/app.py @@ -15,7 +15,7 @@ def create_app(): app = Flask(__name__, template_folder=os.path.join(os.path.dirname(__file__), '..', 'views'), static_folder=os.path.join(os.path.dirname(__file__), '..', 'static'), - static_url_path=base_url + 'static') + static_url_path=base_url.rstrip('/') + '/static') app.route = prefix_route(app.route, base_url.rstrip('/')) app.config["SECRET_KEY"] = 'test' @@ -39,7 +39,7 @@ def create_app(): def http_error_handler(error): return redirect(base_url.rstrip('/')), 302 - socketio.init_app(app, path=base_url+'socket.io', cors_allowed_origins='*') + socketio.init_app(app, path=base_url.rstrip('/')+'/socket.io', cors_allowed_origins='*') return app diff --git a/views/_main.html b/views/_main.html index 73849091d..b6d7c20e5 100644 --- a/views/_main.html +++ b/views/_main.html @@ -280,7 +280,7 @@ }); events = io.connect({ - path: '{{ settings.general.base_url }}socket.io', + path: '{{ settings.general.base_url.rstrip('/') }}/socket.io', upgrade: false, reconnection: true, reconnectionDelay: 1000,