Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

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?

All Replies (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.