Bug #22136
closed
Popup-functionality for Pages using target field don't work in IE
Added by Dirk Eidam about 14 years ago.
Updated over 5 years ago.
Description
If I use the target field for pages to open a popup-window, the IE (all versions) opens a wrong URL (e.g. http://domain.de/en/page1/page1_1/en/page1/page1_1/). I think the problem in TYPO3 is that no baseurl is prepended the url.
If I replace the line 1276 in the file "class.tslib_menu.php"
$onClick = 'vHWin=window.open(\'' . $LD['totalURL'] . '\',\'FEopenLink\',\'' . $JSparamWH . '\');vHWin.focus();return false;';
with
$onClick = 'vHWin=window.open(\'' . $GLOBALS['TSFE']->baseUrlWrap($LD['totalURL']) . '\',\'FEopenLink\',\'' . $JSparamWH . '\');vHWin.focus();return false;';
all works fine.
I have found this solution in the file "class.tslib_content.php" on line 6205. In this file baseUrlWrap() is used to wrap the url.
It seems, that this IE problem was already reported to Microsoft, but unfortunately, not fixed yet.
http://connect.microsoft.com/VisualStudio/feedback/details/449388/base-href-is-ignored-for-shortcut-icon-window-open-and-window-location-href
(issue imported from #M13575)
I guess that this behaviour also occurs in TYPO3 4.2.x, doesn't it?
I think this is a new feature in TYPO3 4.3
RELEASE NOTES FOR TYPO3 4.3:
2009-07-16 Steffen Kamper <info@sk-typo3.de>
* Added feature #19625: Popup-functionality for Pages using target field
The problem does still exist in 4.4.x (I guess, found in 4.4.4 and 4.4.6). The Internet Explorer won't open Popups correctly with the line
$onClick = 'vHWin=window.open(\'' . $LD['totalURL'] . '\',\'FEopenLink\',\'' . $JSparamWH . '\');vHWin.focus();return false;';
- Category deleted (
Communication)
- Status changed from New to Needs Feedback
- Target version deleted (
-1)
The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?
Just noticed it in 4.5.27 (and it was there in 4.5.26 too)
Same solution helps, but it is on line 1312 in 4.5.27
- Status changed from Needs Feedback to Accepted
- Assignee set to Alexander Opitz
- Status changed from Accepted to Under Review
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF