This is an automated email from the ASF dual-hosted git repository.
bbovenzi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 5b9efa7ae3a UI: Fix relative React plugin bundle URLs in dev mode
(#66618)
5b9efa7ae3a is described below
commit 5b9efa7ae3a1d1e009f4d7dfb09ba19bd6ca6db3
Author: Jinwoo <[email protected]>
AuthorDate: Wed May 13 23:34:02 2026 +0900
UI: Fix relative React plugin bundle URLs in dev mode (#66618)
---
airflow-core/src/airflow/ui/src/pages/ReactPlugin.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/airflow-core/src/airflow/ui/src/pages/ReactPlugin.tsx
b/airflow-core/src/airflow/ui/src/pages/ReactPlugin.tsx
index c530409a0e5..25c33080b35 100644
--- a/airflow-core/src/airflow/ui/src/pages/ReactPlugin.tsx
+++ b/airflow-core/src/airflow/ui/src/pages/ReactPlugin.tsx
@@ -35,7 +35,7 @@ type PluginComponentType = FC<PluginProps>;
const loadPlugin = (reactApp: ReactAppResponse): Promise<{ default:
PluginComponentType }> =>
// We are assuming the plugin manager is trusted and the bundle_url is safe
- import(/* @vite-ignore */ reactApp.bundle_url)
+ import(/* @vite-ignore */ new URL(reactApp.bundle_url,
document.baseURI).href)
.then(() => {
// Store components in globalThis[reactApp.name] to avoid conflicts with
the shared globalThis.AirflowPlugin
// global variable.