Skip to content

Commit

Permalink
fix(storefront): BCTHEME-982 Search results containing % symbol resul…
Browse files Browse the repository at this point in the history
…t in errored page. (#2205)
  • Loading branch information
bc-yevhenii-buliuk authored Apr 28, 2022
1 parent b0d896c commit 8c40e35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Draft
- Search results containing % symbol result in errored page. [#2205](https://github.com/bigcommerce/cornerstone/issues/2205)
- Remove translations for adminBar component [#2196](https://github.com/bigcommerce/cornerstone/issues/2196)
- Remove adminBar. [#2191](https://github.com/bigcommerce/cornerstone/issues/2191)
- When price list price is set for currency, the cart does not respect product's price.[#2190](https://github.com/bigcommerce/cornerstone/issues/2190)
Expand Down
2 changes: 1 addition & 1 deletion assets/js/theme/global/quick-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default function () {
return;
}

urlUtils.goToUrl(`${searchUrl}?search_query=${searchQuery}`);
urlUtils.goToUrl(`${searchUrl}?search_query=${encodeURIComponent(searchQuery)}`);
window.location.reload();
});
}

0 comments on commit 8c40e35

Please sign in to comment.