Skip to content

Commit

Permalink
URL encode execution date in the Last Run link (apache#10595)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbegg authored and Chris Fei committed Mar 5, 2021
1 parent caf549b commit 9747243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/www_rbac/templates/airflow/dags.html
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ <h2>DAGs</h2>
last_run = json[safe_dag_id].last_run;
g = d3.select('div#last-run-' + safe_dag_id)
g.selectAll('a')
.attr("href", "{{ url_for('Airflow.graph') }}?dag_id=" + encodeURIComponent(dag_id) + "&execution_date=" + last_run)
.attr("href", "{{ url_for('Airflow.graph') }}?dag_id=" + encodeURIComponent(dag_id) + "&execution_date=" + encodeURIComponent(last_run))
.insert(isoDateToTimeEl.bind(null, last_run, {title: false}));
g.selectAll('span')
// We don't translate the timezone in the tooltip, that stays in UTC.
Expand Down

0 comments on commit 9747243

Please sign in to comment.