From e585e980078e5d997d40ce56da7dbb65f417ef20 Mon Sep 17 00:00:00 2001 From: Nicholas Brown Date: Thu, 11 Jan 2024 18:18:23 -0500 Subject: [PATCH] Bugfix: Missing `UI_SERVE_BASE_URL` lead to incorrect asset urls (#11628) --- src/prefect/server/api/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prefect/server/api/server.py b/src/prefect/server/api/server.py index 020c821dd1b2..912ad5efaa4f 100644 --- a/src/prefect/server/api/server.py +++ b/src/prefect/server/api/server.py @@ -370,7 +370,7 @@ def create_ui_static_subpath(): replace_placeholder_string_in_files( prefect.__ui_static_subpath__, "/PREFECT_UI_SERVE_BASE_REPLACE_PLACEHOLDER", - base_url, + base_url.rstrip("/"), ) # Create a file to indicate that the static files have been copied