geopython / pygeoapi

pygeoapi is a Python server implementation of the OGC API suite of standards. The project emerged as part of the next generation OGC API efforts in 2018 and provides the capability for organizations to deploy a RESTful OGC API endpoint using OpenAPI, GeoJSON, and HTML. pygeoapi is open source and released under an MIT license.
https://pygeoapi.io
MIT License
499 stars 262 forks source link

Schema.org links should use HTTPS #210

Closed jorgejesus closed 5 years ago

jorgejesus commented 5 years ago

Description On template folder files we have schema.org annotations that use links with HTTP. If we run pygeoapi on HTTPS the browser will report mixed content. In case we run pygeopai as HTTP it will not be a problem to use links with HTTPS

Steps to Reproduce For examples: Look at templates/items.html file an find: itemtype="http://schema.org/Dataset

Expected behavior it should be: itemtype="https://schema.org/Dataset Screenshots/Tracebacks

Environment

Additional context

pvgenuchten commented 5 years ago

Most microdata examples use http, but https is also valid (at least in ggl validator), even this seems supported:

<li itemprop="distribution" itemscope itemtype="//schema.org/DataDownload">

(// indicates to the browser to use the protocol of the current page)