Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URLs in search result Bundle.link.url are invalid #194

Open
lawley opened this issue Mar 10, 2023 · 0 comments
Open

URLs in search result Bundle.link.url are invalid #194

lawley opened this issue Mar 10, 2023 · 0 comments

Comments

@lawley
Copy link

lawley commented Mar 10, 2023

I am getting this back for in a search's Bundle.link:

    "link": [
        {
            "relation": "self"
        },
        {
            "relation": "first",
            "url": "&search-offset=0&_count=20"
        },
        {
            "relation": "next",
            "url": "&search-offset=20&_count=20"
        },
        {
            "relation": "last",
            "url": "&search-offset=80&_count=20"
        }
    ],

which is causing a whole pile of problems for my client.

these are not valid relative URLs since their query part must start with '?' (https://url.spec.whatwg.org/#relative-url-string)
if they did start with '?' then that would destroy all the original query parameters (i.e., from the Search request: https://tx.fhir.org/r4/ConceptMap?_format=json)

Furthermore, the links from https://tx.fhir.org/r4/ConceptMap?url:below=http://hl7.org&_format=json look like:

    "link": [
        {
            "relation": "self",
            "url": "below=http://hl7.org"
        },
        {
            "relation": "first",
            "url": "below=http://hl7.org&search-offset=0&_count=20"
        },
        {
            "relation": "next",
            "url": "below=http://hl7.org&search-offset=20&_count=20"
        },
        {
            "relation": "last",
            "url": "below=http://hl7.org&search-offset=80&_count=20"
        }
    ],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant