You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ep...@apache.org on 2022/10/18 13:10:52 UTC

[airflow] 36/41: Avoid 500 on dag redirect (#27064)

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

ephraimanierobi pushed a commit to branch v2-4-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 34052dbbee571ff03e256739b0251b01816d6095
Author: Jed Cunningham <66...@users.noreply.github.com>
AuthorDate: Fri Oct 14 12:34:46 2022 -0700

    Avoid 500 on dag redirect (#27064)
    
    (cherry picked from commit c550bbf7ffe36cafae75f01f1a6f60b169ceb111)
---
 airflow/www/views.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/airflow/www/views.py b/airflow/www/views.py
index dd6c9226af..ea05b1e0c7 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -2489,7 +2489,8 @@ class Airflow(AirflowBaseView):
     @action_logging
     def dag(self, dag_id):
         """Redirect to default DAG view."""
-        return redirect(url_for('Airflow.grid', dag_id=dag_id, **request.args))
+        kwargs = {**request.args, "dag_id": dag_id}
+        return redirect(url_for('Airflow.grid', **kwargs))
 
     @expose('/legacy_tree')
     @auth.has_access(