vishakha1411 opened a new pull request, #65192: URL: https://github.com/apache/airflow/pull/65192
Fixes #64875 ## What changed This fixes UI navigation when switching between dynamically mapped tasks from Grid while viewing a task-instance tab such as XCom. Previously, navigating from a mapped task instance page like: `/tasks/task_1/mapped/0/xcom` to another mapped task from Grid could preserve the `xcom` sub-route even when no concrete mapped index was selected for the destination task. That could produce an invalid route and result in `map_index=NaN`. ## Result Instead of failing with an invalid `map_index`, navigation now lands on: `/tasks/<task_id>/mapped` i.e <img width="877" height="38" alt="image" src="https://github.com/user-attachments/assets/4b059142-6fc3-4518-85bb-745122f1a49d" /> which lets the user choose a mapped task instance before opening XCom or other task-instance tabs. I have not added a regression test in this PR yet. If maintainers prefer, I can add one in a follow-up or update this PR. -- 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]
