Skip to content

Commit

Permalink
fix(storefront): BCTHEME-1076 Unable to navigate to home page from se…
Browse files Browse the repository at this point in the history
…arch results page after clicking Back button on browser.
  • Loading branch information
“bc-yevhenii-buliuk” committed Jul 19, 2022
1 parent 56e5431 commit a9d9292
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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
- Unable to navigate to home page from search results page after clicking Back button on browser. [#2238](https://github.com/bigcommerce/cornerstone/issues/2238)
- Bump webpack-bundle-analyzer [#2229]https://github.com/bigcommerce/cornerstone/pull/2229

## 6.5.0 (06-24-2022)
Expand Down
3 changes: 1 addition & 2 deletions assets/js/theme/global/quick-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ export default function () {
return;
}

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

0 comments on commit a9d9292

Please sign in to comment.