diff --git a/src/flux/stores/search-view.coffee b/src/flux/stores/search-view.coffee index ebde82ba2..c388622e7 100644 --- a/src/flux/stores/search-view.coffee +++ b/src/flux/stores/search-view.coffee @@ -56,7 +56,7 @@ class SearchView extends ModelView NylasAPI.makeRequest method: 'GET' - path: "/threads/search?q=#{@_query}" + path: "/threads/search?q=#{encodeURIComponent(@_query)}" accountId: @_accountId json: true returnsModel: false