Skip to content

Commit

Permalink
Add query string to autocomplete links
Browse files Browse the repository at this point in the history
  • Loading branch information
thalytafabrine committed Dec 13, 2021
1 parent 47c2890 commit 17b31aa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Added
- `_q` query string to Autocomplete links.

## [2.8.6] - 2021-12-08
### Fixed
- Safely decoding URI components to prevent errors when the search query contains breaking characters such as "%"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export class ItemList extends React.Component<ItemListProps> {
params={{
term: item.value,
}}
query="map=ft"
query={`map=ft&_q=${item.value}`}
onClick={() => this.props.onItemClick(item.value, index)}
className={stylesCss.itemListLink}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const TileList: FC<TileListProps> = ({
<footer className={styles.tileListFooter}>
{totalProducts > 0 ? (
<Link
query="map=ft"
query={`map=ft&_q=${term}`}
params={{
term,
}}
Expand Down

0 comments on commit 17b31aa

Please sign in to comment.