搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

GPO Search Engine: spaces replaced with pluses instead of %20

  • 5 回覆
  • 0 有這個問題
  • 15 次檢視
  • 最近回覆由 Mike Kaply

more options

Good day.

I have created a custom Search Engine via a GPO.

The search engine is added to Firefox without issue. However, when a user enters in a search with a space, Firefox replaces the space with a "plus" instead of a %20. The search engine does not know how to interpret a "plus," so the search engine returns 'no results found.' I use the same search string in a Chrome GPO, and it works as Chrome replaces a space with a %20. Is there a way I can tweak the Search engine GPO to use %20 instead of a "plus" for a space?

Thanks.

Peter

Good day. I have created a custom Search Engine via a GPO. The search engine is added to Firefox without issue. However, when a user enters in a search with a space, Firefox replaces the space with a "plus" instead of a %20. The search engine does not know how to interpret a "plus," so the search engine returns 'no results found.' I use the same search string in a Chrome GPO, and it works as Chrome replaces a space with a %20. Is there a way I can tweak the Search engine GPO to use %20 instead of a "plus" for a space? Thanks. Peter
附加的畫面擷圖

所有回覆 (5)

more options

Odd, I've never seen a search engine not support + (all the major engines do).

I'll see what I can figure out.

more options

Can you post the full URL you are using? I ran a test using + signs and it worked for me using the keyword search generated by Firefox.

more options

Here is the full URL.

https://search.prairiecat.info/iii/encore/search/C__S[({searchTerms})]__Ff:facetcollections:45:45:Talcott+Free+Library::__Orightresult?lang=eng&suite=cobalt

When I add this in Chrome using Google's ADMX files, the search works fine.

The problem is with searches with spaces. So a search with a single word, like "Batman" works just fine. But a search with words with spaces, like "Wonder Woman," do not work.

Please let me know if I can provide any additional information.

Thanks again for your help.

more options

I'm not going to have a chance to look at this for a few weeks, but I want you to know that I will look at it. Sorry for the delay.

more options

I realize this is very old, but I did open a bug for this

https://bugzilla.mozilla.org/show_bug.cgi?id=1878781