Bug #15559
closedAdminpanel - Javascript link to open backend causes error with IE and realurl
0%
Description
The javascript link within the adminpanel to open the TYPO3 backend does not work correctly on a subpage of the domain when using the extension 'realurl' and the Internet Explorer (6.0).
This is a general problem i could narrow down to the following: If you have a website with a basetag (e.g. http://yourdomain.com/) set and you are on a subpage (e.g. http://yourdomain.com/subpage/) the JS function call 'window.open(<relative_link>)' from the Adminpanel will result in:
- Firefox: http://yourdomain.com/<relative_link> which is correct
- Internet Explorer: http://yourdomain.com/subpage/<relative_link> which causes an error
It seems that the JS function call within the IE does not consider the basetag at all.
Having realurl enabled and using the link within the adminpanel to open the backend will cause the described error in IExplorer.
For me changing the line 381 in class.t3lib_tsfebeuserauth:
vHWin=window.open(\''.TYPO3_mainDir.'alt_main.php\',\''.md5('Typo3Backend-'.$GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename']).'\',\'status=1,menubar=1,scrollbars=1,resizable=1\');
into:
vHWin=window.open(\'http://'.$GLOBALS['HTTP_SERVER_VARS']['HTTP_HOST'].'/'.TYPO3_mainDir.'alt_main.php\',\''.md5('Typo3Backend-'.$GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename']).'\',\'status=1,menubar=1,scrollbars=1,resizable=1\');
fixed the problem, but I don't know if this is the best approach.
(issue imported from #M2472)
Files
Updated by Alexander Opitz over 11 years ago
- Category deleted (
Communication) - Target version deleted (
0) - TYPO3 Version changed from 3.8.1 to 3.8
- PHP Version deleted (
4)
The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?
IMHO it was fixed.
Updated by Alexander Opitz over 11 years ago
- Status changed from Accepted to Needs Feedback
Updated by Alexander Opitz about 11 years ago
- Status changed from Needs Feedback to Closed
- Assignee deleted (
Michael Stucki) - Is Regression set to No
No feedback for over 90 days.