Bug #22293
closedPopup in HMENU creates invalid URL in IE
0%
Description
In my menu one page is opened in a popup. It works perfect in all browsers excepted by the InternetExplorer-family
Problem: I work with RealURL and my baseURL is like this: http://www.customer.com
One page in my HMENU is generated to open in a popup. His a-tag looks like this:
<a href="testpopup.html" onclick="vHWin=window.open('testpopup.html','FEopenLink','width=1024,height=768');vHWin.focus();return false;" onfocus="blurLink(this);" >TestPopup</a>
I've currently opened the following page: http://www.customer.com/mytest/mypage.html
If I click on this popuplink now he tries to open this url: http://www.customer.com/mytest/testpopup.html
Solution: Change the PHP-Code so he allways writes the baseURL before links which are called by javascript:window.open()
If you've supplied the patch I've attached he'll generate the following a-tag:
<a href="testpopup.html" onclick="vHWin=window.open('http://www.customer.com/testpopup.html','FEopenLink','width=1024,height=768');vHWin.focus();return false;" onfocus="blurLink(this);" >TestPopup</a>
TYPO3 v4.3.2
(issue imported from #M13854)
Files
Updated by Simon Schick over 14 years ago
I've created an extension which solves this problem by using xclasses.
If you wonder why I overwrite so many php-classes - take a look at this page:
http://typo3.org/fileadmin/typo3api-4.0.0/d6/d30/classtslib__menu.html
Updated by Georg Ringer over 14 years ago
i don't know any details but does your patch also take absRefPrefix into account?
Updated by Simon Schick over 14 years ago
Hi, Georg
No - in my testings I haven't used the configuration "absRefPrefix".
When I created the patch I looked into the TypoLink-function and a view lines above inside the patched link-function.
Updated by Alexander Opitz over 11 years ago
- Status changed from New to Needs Feedback
- Target version deleted (
0) - TYPO3 Version set to 4.3
The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?
Updated by Alexander Opitz over 11 years ago
- Status changed from Needs Feedback to Closed
Duplicate of #22136