You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2020/08/27 11:07:45 UTC

[airflow] branch master updated: URL encode execution date in the Last Run link (#10595)

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

kaxilnaik pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/master by this push:
     new 900f15a  URL encode execution date in the Last Run link (#10595)
900f15a is described below

commit 900f15ab692aea34ecd247a8cd2179e1f1835324
Author: Alex Begg <al...@gmail.com>
AuthorDate: Thu Aug 27 04:07:05 2020 -0700

    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 65ae37f..ae59080 100644
--- a/airflow/www/templates/airflow/dags.html
+++ b/airflow/www/templates/airflow/dags.html
@@ -372,7 +372,7 @@
         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.