Skip to content

Commit

Permalink
chore: INC0061093 - Updated search URL parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
bhushan-ebi committed Nov 18, 2024
1 parent 8ad2672 commit 473b9ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions components/embl-breadcrumbs-lookup/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 1.2.1

* Updated search URL parameter [Tracking issue](https://github.com/visual-framework/vf-core/issues/2163)

### 1.2.0

* Improve breadcrumb behaviour to correctly show the active page.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ function emblBreadcrumbAppend(breadcrumbTarget,termName,facet,type) {
// console.warn('embl-js-breadcrumbs-lookup: No matching breadcrumb found for `' + termName + '`; Will formulate a URL.');
if (facet == "who") {
// fallback for people: search people directory
termObject.url = "https://www.embl.org/search/?searchQuery="+termName.replace(/[\W_]+/g," ").replace(/\s+/g, "-").toLowerCase()+"&activeFacet=People%20directory&origin=breadcrumbTermNotFound";
termObject.url = "https://www.embl.org/search/#stq="+termName.replace(/[\W_]+/g," ").replace(/\s+/g, "-").toLowerCase()+"&activeFacet=People%20directory&origin=breadcrumbTermNotFound";
} else {
// otherwise try and search
termObject.url = "https://www.embl.org/search/#stq="+termName+"&taxonomyFacet="+facet+"&origin=breadcrumbTermNotFound"; // if no link specified, do a search
Expand Down

0 comments on commit 473b9ba

Please sign in to comment.