Stream: hapi
Topic: Paging returns invalid URL to next page
Kristof Taveirne (Jun 11 2021 at 10:57):
Hi,
I've successfully implemented paging in my service, but I see that the response is using the hapi.server.path property , including the pending /*.
"link": [
{
"relation": "self",
"url": "/fhir/*/Patient/"
},
{
"relation": "next",
"url": "/fhir/*?_getpages=38cf23a1-088d-479f-a20c-2bf7ed06f1ab&_getpagesoffset=50&_count=50&_bundletype=searchset"
}
],
This ofcourse only works if it's /fhir?_getpages... instead.
How can I manipulate that URL so it doesn't need to be handled at the client side.
Update: I could override this using setServerAddressStrategy(), but still strange that the default doesn't work properly
Thank you,
Kind regards,
Kristof.
Daniel Venton (Jun 11 2021 at 12:23):
I note that your "self" link has /* also, which I bet is wrong.
What happens if you remove the /* from the hapi.server.path property?
Last updated: Apr 12 2022 at 19:14 UTC