diff --git a/ui/redux/actions/search.js b/ui/redux/actions/search.js index a7356c16e..e6677839f 100644 --- a/ui/redux/actions/search.js +++ b/ui/redux/actions/search.js @@ -45,7 +45,7 @@ export const getSearchSuggestions = (value: string) => (dispatch: Dispatch, getS return; } - fetch(`${CONNECTION_STRING}autocomplete?s=${searchValue}`) + fetch(`${CONNECTION_STRING}autocomplete?s=${encodeURIComponent(searchValue)}`) .then(handleFetchResponse) .then(apiSuggestions => { dispatch({