From 9662702ae3a525fac106b40809e54350d1a24404 Mon Sep 17 00:00:00 2001 From: Bernhard Mallinger Date: Thu, 9 Sep 2021 16:18:21 +0200 Subject: [PATCH] Fixed an issue with navigation in job templates On the job detail page (`/processes/PROCESS/jobs/JOB`), the link to "Jobs" used to be `./`. This creates the url `/processes/PROCESS/jobs/`. On that page, the link to "Jobs" is `./jobs`, which then leads you to `/processes/PROCESS/jobs/jobs`. This however is the URL for the job with the id `jobs`. This patch fixes this by changing the link to jobs on the job detail page to `../jobs`. I'm not sure if this is the best fix. Just using `.` as link doesn't seem to lead to the desired outcome, it also generates the link `/processes/PROCESS/jobs/`. --- pygeoapi/templates/processes/jobs/job.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygeoapi/templates/processes/jobs/job.html b/pygeoapi/templates/processes/jobs/job.html index dc31322..4a98811 100644 --- a/pygeoapi/templates/processes/jobs/job.html +++ b/pygeoapi/templates/processes/jobs/job.html @@ -3,7 +3,7 @@ {% block crumbs %}{{ super() }} / {% trans %}Processes{% endtrans %} / {{ data['process']['title'] }} -/ {% trans %}Jobs{% endtrans %} +/ {% trans %}Jobs{% endtrans %} / {{ data['jobs']['jobID'] }} {% endblock %} {% block body %}