Project

General

Profile

Actions

Bug #50364

closed

AdminPanel: Link called "Open TYPO3 Backend" opens FrontEnd in new window

Added by Paul A. Auwehla over 11 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
Start date:
2013-07-24
Due date:
% Done:

100%

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

Description

User-Login to the backend can be configured
to have a selectbox with the options
"Backend" and
"Frontend" (together with the AdminPanel) to display after login.

This is a very valuable option für new Webadmins
to start with an simple frontend,
hidding the full complexity of typo3 for the start-up.

When selecting "Frontend" at login then there
is no way back to the backend. The Link "Open typo3 Backend" from
the AdminPanel points to href="#" which is the Frontend-Address.

The Link should point to href="/typo3" or something like this.

AND: This Link should not open a new window.

typo3 is always opening new tabs when opening
a view from backend to frontend.
There is no reason the open new windows
when just going from the frontend to the backend.

Switching between windows is much more diffucult then
doing the normal typo3-way and switching from tab to tab.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #37431: TYPO3 Backend-Link in admin panel partially broken.Closed2012-05-23

Actions
Has duplicate TYPO3 Core - Bug #51971: Make adminpanel "Open TYPO3 Backend" open a new tab instead of a new windowClosed2013-09-13

Actions
Actions #1

Updated by Markus Klein over 11 years ago

The link has an onclick handler which should do the job, so the href does not matter.

The new windows is only opened once, since it is given a name. Line 445 in /typo3/sysext/frontend/Classes/View/AdminPanelView.php:
vHWin=window.open(\'' . TYPO3_mainDir . \TYPO3\CMS\Backend\Utility\BackendUtility::getBackendScript() . '\',\'' . md5(('Typo3Backend-' . $GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename'])) . '\',\'status=1,menubar=1,scrollbars=1,resizable=1\');

Can you try to change this line to

vHWin=window.open(\'' . TYPO3_mainDir . \TYPO3\CMS\Backend\Utility\BackendUtility::getBackendScript('backend') . '\',\'' . md5(('Typo3Backend-' . $GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename'])) . '\',\'status=1,menubar=1,scrollbars=1,resizable=1\');

and tell me if this works?

Actions #2

Updated by Paul A. Auwehla over 11 years ago

Your path is working.

BUT PLEASE DO NOT OPEN THE BACKEND LINK IN NEW WINDOW.
This window opening just once is one exactly one time to much!

Open backend in new tab as usual in typo3.
This is the workflow in typo3 - leave it as it is.

Switching "tabs" from backend to frontend (and back)
is much much more comfortable (!) than
switching between windows from frontend to backend.

You are breaking the workflow-ergonomics of the backend-frontend switching
with this surprisingly opening new window.

There is absolutely NO need
to reinvent the wheel for typo3.
Please leave this workflow as it is.

Actions #3

Updated by Philipp Gampe over 11 years ago

  • Status changed from New to Needs Feedback

What browser do you use?

This does not work in Chrome, and might not work if your browser has some kind of aggressive popup-blocker.

Actions #4

Updated by Paul A. Auwehla over 11 years ago

The patch of M. Klein is working, but opens the Backend into a NEW window with his supplied code using this javascript-call:
vHWin=window.open(\'' . TYPO3_mainDir . \TYPO3\CMS\Backend\Utility\BackendUtility::getBackendScript('backend') . '\',\'' . md5(('Typo3Backend-' . $GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename'])) . '\',\'status=1,menubar=1,scrollbars=1,resizable=1\');

Using this shortened javascript (with some parameters less) works great and will NOT opening the unwanted new windows.
vHWin=window.open(\'' . TYPO3_mainDir . \TYPO3\CMS\Backend\Utility\BackendUtility::getBackendScript('backend') . '\',\'' . md5(('Typo3Backend-' . $GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename'])) . '\');

The above works opening new tabs as expected for the typo3-backend.
I tested with IE9, FF22, Opera 12.16 and Chrome v26 and v28 - all of these where fine.

Actions #5

Updated by Philipp Gampe over 11 years ago

  • Status changed from Needs Feedback to Accepted

Someone up for pushing a patch? http://wiki.typo3.org/CWT

Actions #6

Updated by Mathias Schreiber almost 10 years ago

  • Target version changed from next-patchlevel to 7.2 (Frontend)
  • Is Regression set to No
Actions #7

Updated by Benni Mack over 9 years ago

  • Target version changed from 7.2 (Frontend) to 7.4 (Backend)
Actions #8

Updated by Susanne Moog over 9 years ago

  • Target version changed from 7.4 (Backend) to 7.5
Actions #9

Updated by Benni Mack about 9 years ago

  • Sprint Focus set to Stabilization Sprint
Actions #10

Updated by Gerrit Code Review about 9 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43535

Actions #11

Updated by Gerrit Code Review about 9 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43535

Actions #12

Updated by Benni Mack about 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #13

Updated by Riccardo De Contardi about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF