Dear DSpace Community,
While using the DSpace 8.0 REST API, we have encountered an issue related
to the "self link" in responses. Specifically, when making requests to the
discover/search endpoint with query parameters (e.g., scope and
configuration), the self link in the response does not reflect the full URL
with the query parameters. Instead, it only points to the generic endpoint
URL.
*Example Request:*
GET
/server/api/discover/search?scope=<scope-id>&configuration=<configuration-id>
*Example Response:*
"_links": {
"self": {
"href": "https://<domain>/server/api/discover/search"
}
}
This inconsistency generates the following warning in the frontend logs:
The response for '<full-URL>' has the self link '<generic-URL>'. These
don't match. This could mean there's an issue with the REST endpoint.
Observed Impact
This discrepancy may lead to warnings in the frontend logs and could
potentially affect functionality such as pagination and filtering.
If anyone in the community has insights into this behavior or has addressed
similar issues, sharing solutions or workarounds would be greatly
appreciated.
Best regards, Lucas.
--
All messages to this mailing list should adhere to the Code of Conduct:
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups
"DSpace Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/dspace-community/b18a78dd-3567-4ad2-85ee-6d1583f0e77bn%40googlegroups.com.