Skip to content

Commit

Permalink
Avoid 500 on dag redirect (#27064)
Browse files Browse the repository at this point in the history
(cherry picked from commit c550bbf)
  • Loading branch information
jedcunningham authored and ephraimbuddy committed Oct 18, 2022
1 parent 2f8ba62 commit 34052db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion airflow/www/views.py
Expand Up @@ -2489,7 +2489,8 @@ def success(self):
@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(
Expand Down

0 comments on commit 34052db

Please sign in to comment.