为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Stop Firefox from assuming search terms are websites

more options

Is there a way to stop Firefox from assuming that anything with a "." in it, without spaces, is a website? If I search for "string.replace" in the search bar, it attempts to take me to http://www.string.replace/ - instead of searching for "string.replace" on my default search engine.

I've previously had problems with one-word searches taking me to http://www.{one-word}.com

in other words, thinking that by "one-word" I meant "one-word.com", instead of a search for "one-word". I've just instinctively started adding spaces after those; but I actually can't seem to replicate this behaviour anymore. Either it's already been fixed, or I'm not entirely sure under what conditions it happens. Is there a setting to more aggressively go for searches? And ideally only assume something that's an actual toplevel domain, should count as a URL indicator?

Is there a way to stop Firefox from assuming that anything with a "." in it, without spaces, is a website? If I search for "string.replace" in the search bar, it attempts to take me to http://www.string.replace/ - instead of searching for "string.replace" on my default search engine. I've previously had problems with one-word searches taking me to http://www.{one-word}.com in other words, thinking that by "one-word" I meant "one-word.com", instead of a search for "one-word". I've just instinctively started adding spaces after those; but I actually can't seem to replicate this behaviour anymore. Either it's already been fixed, or I'm not entirely sure under what conditions it happens. Is there a setting to more aggressively go for searches? And ideally only assume something that's an actual toplevel domain, should count as a URL indicator?

所有回复 (6)

more options

If you are doing this in the address bar, then it will continue. I don't know if this can be turned off. If you use the search bar, there should be no problem.

You could also go to a search engine page directly first.

more options

FredMcD said

If you are doing this in the address bar, then it will continue. I don't know if this can be turned off. If you use the search bar, there should be no problem. You could also go to a search engine page directly first.

Yeah I specifically just want Firefox' address bar search feature to work about as good as Chrome's did in 2008. Having to activate a dedicated search box, that's just giving up trying.

more options

I figured out why I'm sometimes opening a website instead of searching for one-word queries. If I'm pasting something and hit [enter] while still holding [ctrl], then it adds www. and .com. Unless there's a space in the search. From what I can tell browser.fixup.alternate.enabled == false Should disable this feature. It doens't however. Similarly, setting: browser.fixup.alternate.prefix and browser.fixup.alternate.suffix to nothing, doesn't fix it either. Since it's still adding "http://".

more options

nar00w said

Is there a way to stop Firefox from assuming that anything with a "." in it, without spaces, is a website? If I search for "string.replace" in the search bar, it attempts to take me to http://www.string.replace/ - instead of searching for "string.replace" on my default search engine.

You could use search keywords. I use "g" for Google. So I only have to type "g string.replace". You can assign keywords to search engines in the Options by double-clicking on the search engine.

more options

Franz_von_Suppe said

nar00w said
Is there a way to stop Firefox from assuming that anything with a "." in it, without spaces, is a website? If I search for "string.replace" in the search bar, it attempts to take me to http://www.string.replace/ - instead of searching for "string.replace" on my default search engine.

You could use search keywords. I use "g" for Google. So I only have to type "g string.replace". You can assign keywords to search engines in the Options by double-clicking on the search engine.

That's cool! But just adding a space also solves the problem (for my default search engine). I'd just like the problem not the be there, since there's no good reason for it. I'd even accept false negatives (much more readily than false positives).

more options
But just adding a space also solves the problem (for my default search engine).

Does not work for me. But another solution is to press arrow down before pressing Enter.