Describe the bug
A clear and concise description of what the bug is.
Environment
main
To Reproduce
Steps to reproduce the behavior:
- issue a PUT to
{{base}}/Patient/{{id}} with an id like "Patient1"
- note the location header in the response
The resource is created successfully, but the location header in the response has an extra /Patient:
https://localhost:9443/fhir-server/api/v4/Patient/Patient/Patient1/_history/1
Expected behavior
The location header should point to the proper absolute url of the created resource
Additional context
When we try to construct the baseUrl from the request, we mistake the /Patient1 for the /Patient segment of the path.
Describe the bug
A clear and concise description of what the bug is.
Environment
main
To Reproduce
Steps to reproduce the behavior:
{{base}}/Patient/{{id}}with an id like "Patient1"The resource is created successfully, but the location header in the response has an extra
/Patient:https://localhost:9443/fhir-server/api/v4/Patient/Patient/Patient1/_history/1Expected behavior
The location header should point to the proper absolute url of the created resource
Additional context
When we try to construct the baseUrl from the request, we mistake the
/Patient1for the/Patientsegment of the path.