Remove the version from the search URL
qligier opened this issue · comments
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.