diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a1a543d..5203a57e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 "%" diff --git a/react/components/Autocomplete/components/ItemList/ItemList.tsx b/react/components/Autocomplete/components/ItemList/ItemList.tsx index 40749538..7d3810ea 100644 --- a/react/components/Autocomplete/components/ItemList/ItemList.tsx +++ b/react/components/Autocomplete/components/ItemList/ItemList.tsx @@ -83,7 +83,7 @@ export class ItemList extends React.Component { params={{ term: item.value, }} - query="map=ft" + query={`map=ft&_q=${item.value}`} onClick={() => this.props.onItemClick(item.value, index)} className={stylesCss.itemListLink} > diff --git a/react/components/Autocomplete/components/TileList/TileList.tsx b/react/components/Autocomplete/components/TileList/TileList.tsx index 8b38cace..07c2bb4d 100644 --- a/react/components/Autocomplete/components/TileList/TileList.tsx +++ b/react/components/Autocomplete/components/TileList/TileList.tsx @@ -101,7 +101,7 @@ const TileList: FC = ({