Поиск в Поддержке

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

How to force open links in same tab?

  • 7 ответов
  • 8 имеют эту проблему
  • 7524 просмотра
  • Последний ответ от kkorotev

more options

Hello all,

I'm trying to find a way to always open links in the same tab, including external links. I tried the following: browser.link.open_newwindow = 1 browser.link.open_newwindow.override.external = 1 (created) browser.link.open_external = 1 But no success =/ Is there anything else to change?


Все ответы (7)

more options

Whoops, I missed that this question is for Firefox for Android. I don't know whether these settings are applicable to the mobile version.

Are there particular sites that create the problem? Or add-ons?

I think you are very close with your settings, but if you notice scripted windows opening separately, there is one more setting you need to change. Please see the bolded lines in the following list:

In a new tab, type or paste about:config and press Enter. Click the button promising to be careful.

In the filter box, type or paste link.o and pause while the list is filtered.

Double click these and set the value as desired:

(A) browser.link.open_newwindow

3 = divert new window to a new tab (default) (checked*)
2 = allow link to open a new window (unchecked*)
1 = force new window into same tab

* First checkbox in Options > Tabs

(B) browser.link.open_newwindow.restriction - for links in Firefox tabs

0 = apply the setting under (A) to ALL new windows (even script windows)
2 = apply the setting under (A) to normal windows, but NOT to script windows with features (default)
1 = override the setting under (A) and always use new windows

(C) browser.link.open_newwindow.override.external - for links in other programs

-1 = apply the setting under (A) to external links (default)
3 = open external links in a new tab in the last active window
2 = open external links in a new window
1 = open external links in the last active tab replacing the current page

Sorry, that's a lot of data, but since someone may find this in Google, I don't want to leave out the detail.

Изменено jscher2000

more options

Whoops, I missed that this question is for Firefox for Android. I don't know whether these settings are applicable to the mobile version.

There are ways to configure Firefox that may cause external links not to be able to start in an existing window. If the above settings do not work, can you think about whether any of the following might be involved:

  • You started Firefox in a security sandbox or virtual machine separate from the external program launching the link
  • You started Firefox using a particular profile (either through the Profile Manager or on the command line in the shortcut)
  • You started Firefox using a the -no-profile command line parameter to isolate it from other instances of Firefox

Изменено jscher2000

more options


I've already tried with those options and didn't work. I didn't say before (my bad) but this is about Firefox mobile for Android. Also, I didn't started firefox with any of the last options.


more options

In the mobile version, I think browser.link.open_external is the applicable preference. Not sure why it isn't working.

more options

Jefferson, I vote you Firefox Guru of the Day! Wow...does this instruction help!

Caveats: (of course) Let's say I want to create a certain AMOUNT of tabs...let's say: 3, my last three.

Is this already a function or is there a way to make it so?

(History ?)

more options

Hi kkorotev, I don't fully understand your question. You want to start Firefox (for desktop OS's?) with the last 3 tabs that were active in your previous session, but none of the others? There's no built-in feature for that, but you could search for an add-on, maybe the Session Manager extension, and see whether it has anything like that.

Or if I completely missed the point, could you explain in more detail?

more options

Nope...you nailed it. I'll try the extension. Thanks, Jefferson!