Project

General

Profile

Actions

Bug #24916

closed

"Show Page" in contextmenu results in new browser window

Added by Christian Nölle almost 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
Start date:
2011-02-01
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The link "show page" in the right-click menu of the pagetree is resulting in a new browser window beeing opened up. The "show page" button aside the other buttons in a page detail view is opening up a new tab in the browser.

User could find that inconsistent, two behaviours for the same thing.

Futhermore the pop-up blocker of the browser will prevent that windows from opening. The new tab will mostly work without adding the BE domain to a whitelist.
(issue imported from #M17431)


Files

17431.diff (532 Bytes) 17431.diff Administrator Admin, 2011-02-03 16:45

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #24946: "Show" doesn't work in Chrome in new page treeeClosed2011-02-04

Actions
Has duplicate TYPO3 Core - Bug #24658: New window instead of new tab when viewing a page from the new page treeClosedSteffen Gebert2011-01-19

Actions
Actions #1

Updated by Sven Juergens almost 14 years ago

hi Christian,

i had the same "problem", can you test the attached patch ? "Show Page" should now open again in a tab, not a new window.

After adding patch you must clean your browser cache.

Actions #2

Updated by Christian Nölle almost 14 years ago

I will check that out later on.

Actions #3

Updated by Christian Nölle almost 14 years ago

Looks good. Is working for me.

Actions #4

Updated by Simon Schaufelberger almost 14 years ago

I was digging a bit deeper into this issue and found out that the problem is this function:
function openUrlInWindow(url,windowName) { //
regularWindow = window.open(
url,
windowName,
"status=1,menubar=1,resizable=1,location=1,directories=0,scrollbars=1,toolbar=1");
regularWindow.focus();
return false;
}

in typo3/js/backend.js

As long as there are no third parameters in window.open, everything works well but in this case all typical browsers open another window.

The second thing is that the target window name is not the same in pagetree as in the main content window.

right now we have: "typo3ContextMenuView" but in the main window we have "newTYPO3frontendWindow". This results into 2 independent windows/tabs.

The possibilities: remove the parameters from the function above and rename typo3ContextMenuView to newTYPO3frontendWindow or use the patch and change the window names there.

Actions #5

Updated by Stefan Galinski over 13 years ago

Committed in:
rev 10633 (trunk)
rev 10634 (4.5)

Actions

Also available in: Atom PDF