Skip to content

Commit

Permalink
Merge branch 'EMC-31-fix-facet-search-box-not-working-in-staging' int…
Browse files Browse the repository at this point in the history
…o 'develop'

EMC-31 "Fix facet search box not working in staging"

Closes EMC-31

See merge request eip/catalogue!752
  • Loading branch information
iwalmsley committed Oct 30, 2024
2 parents 43910d9 + 5c01646 commit 802bc83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/search/src/SearchFacets.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export function createFacetSearch (facets) {
appendTo: '#search',
select: (event, ui) => {
$(id).val(ui.item.label)
$('a[href="' + ui.item.url + '"]').first().trigger('click')
const url = ui.item.url.replace('http:', window.location.protocol)
$('a[href="' + url + '"]').first().trigger('click')
return false
}
})
Expand Down

0 comments on commit 802bc83

Please sign in to comment.