Opening pages in new browser tab rather than new window

LATEST Official version.
Questions and discussions - NO ISSUES
FOR ISSUES => http://mantis.testlink.org

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
Xsharp
Advanced user
Posts: 17
Joined: Mon Dec 31, 2012 2:08 pm
Location: Montreal, Canada.

Opening pages in new browser tab rather than new window

Post by Xsharp »

Hi,
When for example clicking on links like history execution or edit test case or execute test case from the test case assigned to me page, those new pages are always opened in a new windows browser.
is there any way to make them opening in a new tab on the same browser window?
Xsharp
Advanced user
Posts: 17
Joined: Mon Dec 31, 2012 2:08 pm
Location: Montreal, Canada.

Re: Opening pages in new browser tab rather than new window

Post by Xsharp »

Come on guys! really no one of you can answer this question? should I post it some were else or is-it to obvious so I should't had have post it at all?
well still don't know how to do it. hop some one kindly helps.
TurboPT
Member of TestLink Community
Posts: 343
Joined: Sun Dec 10, 2006 4:51 am

Re: Opening pages in new browser tab rather than new window

Post by TurboPT »

Xsharp wrote: ... is there any way to make them opening in a new tab on the same browser window?
Yes, but it will take some digging through the code for the alteration, and it will not be a trivial task, as there is no "toggle" to have it one way or the other.

The relative javascript involved is shared for [at least] links and button clicks throughout the app, which means, the handling would need to be split between the links and the buttons uses [plus any other app areas that would be impacted], AND insure that any place that relies on the changes all still work as expected.

I cannot speak for the TL dev team, but I believe this would be considered a low priority; however, you can add a feature request for this support to Mantis. As far as I know, it seems [based on a quick forum search, but I did not check Mantis] that this is the only post asking about opening other app pages in other tabs vs. other windows.

Some [newer] browsers have an option to open new windows in a tab instead, but there may be limitations, as noted in this Mozilla info concerning their feature:
Mozilla.org wrote: Open new windows in a new tab instead: This option controls whether links from other applications or from web pages which request to open them in new windows are opened in a new window or a new tab in the most recent window.
  • Note: If you have chosen to open pages in new tabs, Firefox will ignore this option and will open a new window from a link if the page author specified that the new window should have a specific size, because some pages can only be displayed correctly at a specific size.
Other than that, there may be a way to at least open some of those in the same parent frame, but I'm not 100% sure about the full ramificaiton of this change to elaborate on the details at the moment.
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: Opening pages in new browser tab rather than new window

Post by fman »

Because 1.9.x uses session to convey some critic info like TestProjectID and TestPlanID, opening a feature in a new tab instead that reusing same window
will lead to a mess if people can change on both tabs testplan or testproject.
This is one reason IMHO to reject the request if ever will be opened on Mantis.
Post Reply