SDFIdk / skraafoto_stac_public

Other
6 stars 1 forks source link

When `root_path` is used links to api root are wrong #16

Closed AsgerPetersen closed 2 years ago

AsgerPetersen commented 2 years ago

With root_path=/skraafotoapi_test we get links like

{
  "rel": "self",
  "type": "application/json",
  "href": "https://api.dataforsyningen.dk/skraafotoapi_test/collections/skraafotos2019?token=xxx"
},
{
  "rel": "parent",
  "type": "application/json",
  "href": "https://api.dataforsyningen.dk/?token=xxx"
}

Note that the collections self link is correct while the link to API root is not correct.