mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-03-25 20:29:45 -04:00
Encode term from search view's search bar
Same fix as #1175, but for the form on the search page.
This commit is contained in:
parent
d6093f19b0
commit
0313346fed
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ var Search = injectIntl(React.createClass({
|
|||
}.bind(this));
|
||||
},
|
||||
onSearchSubmit: function (formData) {
|
||||
window.location.href = '/search/projects?q=' + formData.q;
|
||||
window.location.href = '/search/projects?q=' + encodeURIComponent(formData.q);
|
||||
},
|
||||
getTab: function (type) {
|
||||
var term = this.props.searchTerm.split(' ').join('+');
|
||||
|
|
Loading…
Add table
Reference in a new issue