If a search URL has spaces encoded as plus signs (+), they aren't decoded before the query is sent to Google. Also, they will be added in the form on the results page. For example: search/google?query=web+developer will be searched as the literal "web+developer", which will also be the pre-filled value of the keywords input on the page.
This patch will replace + with %20 prior to calling decodeURIComponent().
This solution is based on the answer here: https://stackoverflow.com/a/24417399
| Comment | File | Size | Author |
|---|---|---|---|
| url-query-plus-spaces.patch | 443 bytes | byrond |
Comments
Comment #2
byrond commentedComment #3
lreynaga commentedPatch works as intended. Thanks.
Comment #5
mark_fullmer