bbovenzi commented on code in PR #52795:
URL: https://github.com/apache/airflow/pull/52795#discussion_r2193059941
##########
airflow-core/src/airflow/ui/src/pages/Iframe.tsx:
##########
@@ -49,12 +49,38 @@ export const Iframe = ({ sandbox = "allow-same-origin
allow-forms" }: { readonly
return <ErrorPage />;
}
+ // Build the href URL with context parameters if the view has a destination
+ let src = iframeView.href;
+
+ if (iframeView.destination !== undefined && iframeView.destination !==
"nav") {
+ // Check if the href contains placeholders that need to be replaced
+ if (dagId !== undefined) {
+ src = src.replaceAll("{dag_id}", dagId);
+ }
+ if (runId !== undefined) {
+ src = src.replaceAll("{run_id}", runId);
+ }
+ if (taskId !== undefined) {
+ src = src.replaceAll("{task_id}", taskId);
Review Comment:
No, let me update the frontend
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]