Project

General

Profile

Actions

Bug #15559

closed

Adminpanel - Javascript link to open backend causes error with IE and realurl

Added by Patrick Rodacker about 18 years ago. Updated over 10 years ago.

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

0%

Estimated time:
TYPO3 Version:
3.8
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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/&lt;relative_link> which is correct
- Internet Explorer: http://yourdomain.com/subpage/&lt;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

bug_2472.diff (1.53 KB) bug_2472.diff Administrator Admin, 2006-10-17 19:04
Actions #1

Updated by Michael Stucki over 17 years ago

Thanks, will fix this.

Actions #2

Updated by Alexander Opitz almost 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.

Actions #3

Updated by Alexander Opitz almost 11 years ago

  • Status changed from Accepted to Needs Feedback
Actions #4

Updated by Alexander Opitz over 10 years ago

  • Status changed from Needs Feedback to Closed
  • Assignee deleted (Michael Stucki)
  • Is Regression set to No

No feedback for over 90 days.

Actions

Also available in: Atom PDF