Keyword search (with bookmark) incorrectly encodes space as "+"

NEW
Unassigned

Status

()

P5
normal
2 years ago
a year ago

People

(Reporter: human.peng, Unassigned)

Tracking

47 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36

Steps to reproduce:

1. Set a bookmark with keyword and %s (e.g. https://en.wikipedia.org/wiki/%s)
2.  search a term with space (assuming the keyword is w, search "w ab cd)


Actual results:

It uses "ab+cd" (i.e replaced space to "+").


Expected results:

It should use "ab%cd".

Firstly this is inconsistent from the desktop Firefox. In desktop Firefox (checked in Nightly), it would use  "ab%20cd". 

While it works just the same for most search queue parameters, it doesn't work well in some other cases where websites distinguish them.

For example, https://en.wikipedia.org/wiki/%s will treat ab+cd and ab%20cd differently.

(I KNEW there are other ways to search Wikipedia. Just an example.)
(Reporter)

Comment 1

2 years ago
By the way, is there any way to set keyword for search engines on Android?
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.