From e3c8ca01b19b332fbdfcf0126023952ca6d0c3cd Mon Sep 17 00:00:00 2001 From: Chiragasourabh Date: Wed, 16 Apr 2025 23:46:36 +0530 Subject: [PATCH] alive url uses routes_pathname_prefix --- dash/_jupyter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dash/_jupyter.py b/dash/_jupyter.py index 16de3b88f9..ac06f849c7 100644 --- a/dash/_jupyter.py +++ b/dash/_jupyter.py @@ -294,6 +294,8 @@ def run_app( else: requests_pathname_prefix = "/" + routes_pathname_prefix = app.config.get("routes_pathname_prefix", "/") + # FIXME Move config initialization to main dash __init__ # low-level setter to circumvent Dash's config locking # normally it's unsafe to alter requests_pathname_prefix this late, but @@ -355,7 +357,7 @@ def run(): self._servers[(host, port)] = server # Wait for server to start up - alive_url = f"http://{host}:{port}{requests_pathname_prefix}_alive_{JupyterDash.alive_token}" + alive_url = f"http://{host}:{port}{routes_pathname_prefix}_alive_{JupyterDash.alive_token}" def _get_error(): try: