encode search query before navigating
This commit is contained in:
parent
af4b34146e
commit
538cf4dc46
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ const select = state => ({
|
|||
|
||||
const perform = (dispatch, ownProps) => ({
|
||||
onSearch: query => {
|
||||
ownProps.history.push({ pathname: `/$/search`, search: `?q=${query}` });
|
||||
ownProps.history.push({ pathname: `/$/search`, search: `?q=${encodeURIComponent(query)}` });
|
||||
analytics.apiLogSearch();
|
||||
},
|
||||
onSubmit: uri => {
|
||||
|
|
Loading…
Reference in a new issue