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!

為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

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

了解更多

Firefox appends www before random words in URL bar

  • 10 回覆
  • 1 有這個問題
  • 9 次檢視
  • 最近回覆由 Ekci

more options

The problem is that: 1. I copy random word. 2. Press CTRL+T and CTRL+V and press ENTER. Last time it happened it was a word "homography". 3. I end up on the website "http://www.homography/" 4. Why?

It is random, pasting it again in the URL bar does search in Google. I have these settings changed in `about:config`: browser.fixup.alternate.enabled = false browser.fixup.alternate.prefix = (empty) browser.fixup.alternate.suffix = (empty)

What's wrong?

The problem is that: 1. I copy random word. 2. Press CTRL+T and CTRL+V and press ENTER. Last time it happened it was a word "homography". 3. I end up on the website "http://www.homography/" 4. Why? It is random, pasting it again in the URL bar does search in Google. I have these settings changed in `about:config`: browser.fixup.alternate.enabled = false browser.fixup.alternate.prefix = (empty) browser.fixup.alternate.suffix = (empty) What's wrong?
附加的畫面擷圖

被選擇的解決方法

Unfortunately, Firefox doesn't have a feature to disable or reassign built-in keyboard shortcuts. An add-on can intercept many of them by injecting code into the current web page, but I don't think they can do it on the new tab page.

So I think for the time being, you'll have to take it a little bit slower so you don't have the Ctrl key down when you hit Enter. Or use the context menu command when applicable.

Solution to disable the shortcut: see cor-el's reply below.

從原來的回覆中察看解決方案 👍 0

所有回覆 (10)

more options

Hmm, that's a strange result. If you were going so fast that Firefox thought you were still holding down the Ctrl key when pressing Enter, then you should get both www. and the beginning and .com at the end. I don't know how you could get only www. at the beginning. ??

If you are trying to search a word or phrase selected in a page in Firefox, consider

right-click > Search [site] for [selected text]

as a workaround or possible time-saver.

more options

jscher2000 said

I don't know how you could get only www. at the beginning. ??

Actually, Ctrl+Enter plus these settings --

Ekci said

I have these settings changed in `about:config`: browser.fixup.alternate.prefix = (empty)
browser.fixup.alternate.suffix = (empty)

-- gives me just the extra www. and not .com. Odd.

由 jscher2000 - Support Volunteer 於 修改

more options

Oh, that's it! So it looks like Ctrl+Enter forces fixup that's bugged and respects suffix setting but ignores prefix?

A fix for me would be turning the shortcut off but I cannot find a way to do this. Thank you for your answer!

more options

選擇的解決方法

Unfortunately, Firefox doesn't have a feature to disable or reassign built-in keyboard shortcuts. An add-on can intercept many of them by injecting code into the current web page, but I don't think they can do it on the new tab page.

So I think for the time being, you'll have to take it a little bit slower so you don't have the Ctrl key down when you hit Enter. Or use the context menu command when applicable.

Solution to disable the shortcut: see cor-el's reply below.

由 jscher2000 - Support Volunteer 於 修改

more options

jscher2000 said

Unfortunately, Firefox doesn't have a feature to disable or reassign built-in keyboard shortcuts. An add-on can intercept many of them by injecting code into the current web page, but I don't think they can do it on the new tab page. So I think for the time being, you'll have to take it a little bit slower so you don't have the Ctrl key down when you hit Enter. Or use the context menu command when applicable.

Ok, I will but shouldn't it be reported as a bug of a fixup? :)

more options

Ekci said

Ok, I will but shouldn't it be reported as a bug of a fixup? :)

I thought about that, but the quick fix of making the prefix correctly blank doesn't help you bypass fixup:

Ctrl+Enter: if prefix = "" and suffix = "" then => http://word/

You need new logic:

Ctrl+Enter: if prefix = "" and suffix = "" then => DO NOT FIXUP

Or a new preference:

browser.fixup_shortcut.enabled = (true|false)

Solution to disable the shortcut: see cor-el's reply below.

由 jscher2000 - Support Volunteer 於 修改

more options

Ok, thank you! I will solve this problem but still hope that there will be an option to disable the shortcut. It seems that I think faster than my fingers can move :)

由 Ekci 於 修改

more options

Possibly you discovered it already but just in case, here's the bug tracker: https://bugzilla.mozilla.org/

more options

Maybe:

  • browser.urlbar.ctrlCanonizesURLs = false
more options

Yes! It did work, thank you @cor-el!