This is an automated email from the ASF dual-hosted git repository.

pierrejeambrun 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 bde7fc6a59d Fix External Views relative URL (#53664)
bde7fc6a59d is described below

commit bde7fc6a59d09bc374d7778701dab6c94ccfe4e9
Author: Pierre Jeambrun <[email protected]>
AuthorDate: Wed Jul 23 14:45:00 2025 +0200

    Fix External Views relative URL (#53664)
---
 airflow-core/src/airflow/ui/src/pages/Iframe.tsx | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/airflow-core/src/airflow/ui/src/pages/Iframe.tsx 
b/airflow-core/src/airflow/ui/src/pages/Iframe.tsx
index 257e06b564b..eb02d17bd86 100644
--- a/airflow-core/src/airflow/ui/src/pages/Iframe.tsx
+++ b/airflow-core/src/airflow/ui/src/pages/Iframe.tsx
@@ -48,10 +48,15 @@ export const Iframe = ({
     }
   }
 
+  if (src.startsWith("http://";) || src.startsWith("https://";)) {
+    // URL is absolute
+    src = new URL(src).toString();
+  }
+
   return (
     <iframe
       sandbox={sandbox}
-      src={new URL(src).toString()}
+      src={src}
       style={{
         border: "none",
         display: "block",

Reply via email to