gbif / portal16

GBIF.org website
https://www.gbif.org
Apache License 2.0
24 stars 15 forks source link

failing routes for gbif network #1977

Closed MortenHofft closed 1 month ago

MortenHofft commented 1 month ago

The current implementation looks somewhat fragile, routes are handled by arrays that are made upper case and then filtered and macthed to the contentful types. If there is no match it will fail, unless excluded in later code. That is a bit difficult to manage. And looks like it would have been failing since the initial implementation 7 years ago.

I suggest changing it to simply try to get the contentful item, and if it fails render without it There is already a check for that in the UI I see