-
Notifications
You must be signed in to change notification settings - Fork 40
Closed
Description
We're deploying stac-fastapi.pgstac using a root_path
in the app declaration (not through uvicorn, which has already been fixed in #221). We're finding some links where the root_path
is duplicated. Most links are fine - it's only certain links that are duplicating paths.
Examples:
https://dev.openveda.cloud/api/stac/collections - links.self
is affected
"links": [
{
"rel": "root",
"type": "application/json",
"href": "https://dev.openveda.cloud/api/stac/"
},
{
"rel": "self",
"type": "application/json",
"href": "https://dev.openveda.cloud/api/stac/api/stac/collections"
}
],
https://dev.openveda.cloud/api/stac/search?collections=no2-monthly - links.next
is affected
"links": [
{
"rel": "root",
"type": "application/json",
"href": "https://dev.openveda.cloud/api/stac/"
},
{
"rel": "self",
"type": "application/geo+json",
"href": "https://dev.openveda.cloud/api/stac/search"
},
{
"rel": "next",
"type": "application/geo+json",
"method": "GET",
"href": "https://dev.openveda.cloud/api/stac/api/stac/search?collections=no2-monthly&.language=en&token=next:no2-monthly:OMI_trno2_0.10x0.10_202303_Col3_V4.nc"
}
],
I think #250 might be addressing the same issue. Should that PR be re-opened, or is there another solution we're overlooking?
fabito
Metadata
Metadata
Assignees
Labels
No labels