Do more on the web, with a fast and secure browser!

Download Opera browser with:

  • built-in ad blocker
  • battery saver
  • free VPN
Download Opera

Closing a tab switches to back to the wrong one

  • @leocg Okay, so you got the issue sometimes. That's good. What is the next step. How can we get this fixed?

  • @t3rm1 Well, we don't even know if it is considered a bug that needs to be fixed. If you think it is, you can report it

  • @leocg Thanks for the link. I reported it.

  • @t3rm1 I'm start thinking that this is an intended behavior and there are some logic on it.

    Start Opera with no sites opened. Open any site (page 1). From site 1 open two links in new tabs . Go to the first tab on the right (page 2) and close it, the one on the right (page 3) will become the new active tab.
    From that page (page 3), open two new tabs and then close the page. Now the page on the left (page 1) will become the active one.
    And if you go to the page on the left (page 4) and close it, the page on the right (page 5) will now be the currently active.

    I think it's because Opera cycles between the tabs opened from the same page. So if you load site A and from there open pages A1, A2 and A3 and then open a new tab and load site B, if you close A3 you will get A2 as the active one, because it was also opened from A, and not site B.

  • The question is: Why would it make sense to open another tab instead of the previous one when closing a tab. I can't find any reasons for it. Too bad we won't get any response for the ticket.

  • @t3rm1 what do you mean by 'open another tab'? You don't need to open another tab.

  • I expressed it wrong. I just wonder what reason there could be that the tab to the right of the closed one gets the focus instead of the left (and previously focused) tab. Since I don't know any I think it has to be a bug.

  • I have the same issue. For whatever reason, if I close a child tab opened from another page, Opera insists on displaying the next open tab on the right, as opposed to the source tab on the left like all other browsers do. Pretty frustrating. v53.0.2907.68

  • It's super-funny, because I would like Opera to open next tab after closing active one, but instead it opens in some awkward order.

  • @t3rm1 said in Closing a tab switches to back to the wrong one:

    Follow these steps:

    Open tab A (eg.
    Open a link from tab A in a new tab (called B )
    Go back to tab A and open another link in a new tab (this tab is now between A and B, called A1)
    Close tab A1. This will open tab B instead of tab A.

    Can you confirm this?

    I can confirm this.

    @t3rm1 said in Closing a tab switches to back to the wrong one:

    The question is: Why would it make sense to open another tab instead of the previous one when closing a tab.

    Tab B was the last tab that was opened, so Opera switches back to it.

    As for A1 being between A and B, tha's the default "open tab next to active tab" behavior. You can change that by turning off opera://settings/userInterface?search=cycle%20tabs%20in%20most%20recently%20used%20order

    Note though that if you turn that off, you might have to close all tabs to test as Opera might get confused.

  • In Opera 12's tab settings, you have 3 choices for what happens when you close a tab. You had "activate the last active tab", "activate the next tab", and "Activate the first tab opened from the current tab". Also in Opera 12, you could choose to open a tab at the end of the tab bar or next to the current tab. There was also a setting for the order of how tabs were cycled.

    Vivaldi has similar close options. It has a checkbox for "always activate related tab" and then a close order option with the choice of "Activate in recently used order", "Activate left in tab order", and "Activate right in tab order".

    Point being, there are a bunch of ways to handle closing of tabs. Opera just needs the options so users can pick the way they want.

  • This post is deleted!