mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
Merge pull request #1914 from joker314/patch-1
Fix search bar's handling of special characters
This commit is contained in:
commit
05a47da8ca
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ class Search extends React.Component {
|
|||
while (term.indexOf('&') > -1) {
|
||||
term = term.substring(0, term.indexOf('&'));
|
||||
}
|
||||
term = decodeURI(term.split('+').join(' '));
|
||||
term = decodeURIComponent(term.split('+').join(' '));
|
||||
this.props.dispatch(navigationActions.setSearchTerm(term));
|
||||
}
|
||||
componentDidUpdate (prevProps) {
|
||||
|
|
Loading…
Reference in a new issue