Subham-KRLX opened a new pull request, #64404:
URL: https://github.com/apache/airflow/pull/64404

   Currently the Airflow 3 UI hardcodes all operator extra links to open in a 
new tab (target="_blank"). This prevents plugin developers from creating 
seamless experiences when linking to internal Airflow pages or custom React 
plugins.
   
   This PR adds a configurable target attribute to BaseOperatorLink (defaulting 
to _blank) and updates the serialization, REST API, and UI to honor this 
setting.
   
   Key Changes:
   
   Task SDK: Added target attribute to BaseOperatorLink.
   Serialization: Updated XComOperatorLink and serialization logic to propagate 
target while maintaining backward compatibility for existing serialized DAGs.
   REST API: Updated the get_extra_links endpoint to return structured link 
objects {url, target}.
   UI: Modified ExtraLinks.tsx to apply the target attribute from the API 
response to the rendered buttons.
   
   closes: #64336
   
   Was generative AI tooling used to co-author this PR?
    Yes — Gemini (For pr description)


-- 
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]

Reply via email to