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

Remove the version from the search URL #12

Open
qligier opened this issue Feb 23, 2024 · 0 comments
Open

Remove the version from the search URL #12

qligier opened this issue Feb 23, 2024 · 0 comments
Assignees

Comments

@qligier
Copy link
Member

qligier commented Feb 23, 2024

In the search form, we bind the search to the IG full URL (i.e. with version). We should remove the version from the URL.

E.g. in https://fhir.ch/ig/ch-atc/searchform.html, the URL used is http://fhir.ch/ig/ch-atc/3.2.0, whereas the current version is accessible at http://fhir.ch/ig/ch-atc/, and it's the only one being indexed by search engines.

For future reference: searchform.html is not processed by Jekyll, the IGPublisher only replaces two variables when processing that file: {{url}} and {{version}} (see org.hl7.fhir.igtools.publisher.Publisher#fixSearchForm()). {{url}} contains the IG version.
The only solution is then JavaScript.

@qligier qligier self-assigned this Feb 23, 2024
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