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

Autocomplete should allow for the source to already have parameters #2321

Open
grahamegrieve opened this issue Dec 26, 2024 · 2 comments
Open

Comments

@grahamegrieve
Copy link

grahamegrieve commented Dec 26, 2024

Concerning the Autocomplete widget source property, the documentation says:

a query string is added with a term field, which the server-side script should use for filtering the results. For example, if the source option is set to "https://example.com" and the user types foo, a GET request would be made to https://example.com?term=foo.

if the source already has parameters e.g.

 source: "http://tx.fhir.org/r4/ValueSet/$expand&url=http%3A%2F%2Fterminology.hl7.org%2FValueSet%2Fv2-0006&_format=jquery",

The string appended is still ?term={x}. If there is already a ? in the source URL, &term={x} should be appended

@mgol
Copy link
Member

mgol commented Jan 10, 2025

Thanks for the report. Does the issue you describe exist when jQuery UI 1.12.1 is used or only with jQuery UI 1.13.0 or newer?

@mgol
Copy link
Member

mgol commented Jan 10, 2025

Also, please provide a runnable test case on a platform like JS Bin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants