From 8180b345b07b63cb83c2e61403a93d628f66989e Mon Sep 17 00:00:00 2001 From: Paul van genuchteG Date: Wed, 25 May 2022 07:35:33 +0200 Subject: [PATCH] - sets canonical url to xxx?f=html to prevent issues when json is default encoding (#905) - remove canonical link from ogc-api features config resolves #900 --- pygeoapi/templates/_base.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pygeoapi/templates/_base.html b/pygeoapi/templates/_base.html index 6c32dd3..bc80a00 100644 --- a/pygeoapi/templates/_base.html +++ b/pygeoapi/templates/_base.html @@ -14,9 +14,10 @@ {% for link in data['links'] %} - {% if (link['rel']=="self" and link['type']=="text/html") %} - + + {% elif (link['rel']!="canonical") %} + {% endif %} {% endfor %} {% block extrahead %}