From 900f15ab692aea34ecd247a8cd2179e1f1835324 Mon Sep 17 00:00:00 2001 From: Alex Begg Date: Thu, 27 Aug 2020 04:07:05 -0700 Subject: [PATCH] URL encode execution date in the Last Run link (#10595) Fixes #10434 --- airflow/www/templates/airflow/dags.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airflow/www/templates/airflow/dags.html b/airflow/www/templates/airflow/dags.html index 65ae37ff8bf6c..ae590808768b6 100644 --- a/airflow/www/templates/airflow/dags.html +++ b/airflow/www/templates/airflow/dags.html @@ -372,7 +372,7 @@

DAGs

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.