NBardelot opened a new issue, #40655: URL: https://github.com/apache/airflow/issues/40655
### Apache Airflow version 2.9.2 ### If "Other Airflow 2 version" selected, which one? _No response_ ### What happened? The URL built by the view has a "map_index" parameter value of -1, while the real value is 0+.  The `redirect_to_external_log` function of `airflow/www/views.py` thus does not find the task instance and outputs an error in the Airflow UI: "Task [some task] does not exist". Changing the map_index manually in the URL to the good value makes the link work properly. ### What you think should happen instead? The URL computed by the view should be with the right map_index. ### How to reproduce Have an external logging mechanism in place (we have ElasticSearch), and create mapped tasks. See that the log URL of those mapped tasks are wrong when those are instanciated. ### Operating System Kubernetes ### Versions of Apache Airflow Providers _No response_ ### Deployment Official Apache Airflow Helm Chart ### Deployment details _No response_ ### Anything else? _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- 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]
