Skip to content

Commit

Permalink
Merge pull request #156 from vtex-apps/fix/add-query-to-links
Browse files Browse the repository at this point in the history
Add query string _q to autocomplete links
  • Loading branch information
thalytafabrine authored Dec 13, 2021
2 parents 47c2890 + 17b31aa commit 4021d6e
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 4021d6e

Please sign in to comment.