Firefox for Android: use mobile Wikipedia for alternative search engine
Categories
(Firefox for Android :: Search, enhancement)
Tracking
()
People
(Reporter: rybak.a.v+mozilla, Unassigned)
Details
Steps to reproduce:
- Go to three-dot menu > ⚙️ Settings > Search > Manage alternative search engines
- Ensure checkbox next to "Wikipedia" is enabled
- Go back to the home screen
- Type a search query in the address bar. E.g. "example123"
- Tap the search engine selector on the left side
- Tap "Wikipedia"
- Tap the "go" button (the highlighted button of the keyboard)
- Observe the resulting URL
Actual results:
The search URL points to desktop version of the Wikipedia website: https://en.wikipedia.org/wiki/Special:Search?search=example123&sourceid=Mozilla-search&ns0=1
Expected results:
Mobile version of Wikipedia is used: https://en.m.wikipedia.org/wiki/Special:Search?search=example123&sourceid=Mozilla-search&ns0=1
| Reporter | ||
Comment 1•1 year ago
|
||
Workaround
- Go to three-dot menu > ⚙️ Settings > Search > Manage alternative search engines
- Tap "+ Add search engine"
- Enter:
- Name: "Mobile Wikipedia"
- Search string URL: "https://en.m.wikipedia.org/wiki/Special:Search/%s"
Comment 2•1 year ago
|
||
(In reply to Andrei Rybak from comment #0)
Actual results:
The search URL points to desktop version of the Wikipedia website: https://en.wikipedia.org/wiki/Special:Search?search=example123&sourceid=Mozilla-search&ns0=1
Expected results:
Mobile version of Wikipedia is used: https://en.m.wikipedia.org/wiki/Special:Search?search=example123&sourceid=Mozilla-search&ns0=1
When I try this on my Android instances, Wikipedia redirects me to the mobile page automatically. It does the same if I visit the first of your two links here.
Is it possible that you've got the "Desktop site" option turned on for Wikipedia?
| Reporter | ||
Comment 3•1 year ago
|
||
Hmm. After some testing, my educated guess is that it has to do not with the "Desktop site" option, but with Wikipedia cookies – the search seems to redirect to the version of the website used last.
I.e. steps to reproduce for Firefox for Android:
- Open https://en.m.wikipedia.org/wiki/Example (mobile version)
- Try searching on Wikipedia
- Result: search results are loaded in the mobile Wikipedia
- Open https://en.wikipedia.org/wiki/Example (desktop version)
- Try searching on Wikipedia
- Result: search results are loaded in the desktop Wikipedia
I'm not sure if this is desirable or not, but at least I know what to do to "reset" it to the mobile version for search results.
The search URL from the workaround doesn't have such behavior, always opening the mobile version for search results.
Description
•