Closed justb4 closed 5 years ago
Problems 1) and 2): some html links have trailing slash '/' in page URLs. In those cases relative links within the page get expanded to URLs with 'items/items..' i.s.o. 'items/..'. . Will solve.
Item 3) : depends on content negotiation, default would be JSON (e.g. curl http://localhost:5000/
). But in browser would be HTML, so need explicit f=json
when HTML is rendered.
Can close IMO, pls re-open if still nav errors as listed above found.
Still stale links in map markers, caused by https://github.com/geopython/pygeoapi/blob/master/pygeoapi/templates/items.html#L85 . One-liner fix needed similar to regular HTML ft id links in table view. Will fix.
To reproduce:
http://localhost:5000/collections/<dataset>/items/items/feature.11?f=html
Fix is similar to fix in table View in items.html.
Closing, pls re-open if still nav errors as listed above found.
Several issues found, some were there already before #92:
NB this was already seen before #92
the OpenAPI definition as JSON
Not sure what the standard requires, or if http://localhost:5000/api?f=json should be explicitly rendered?