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.
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.
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?
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.
- 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.
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.
- Status changed from Needs Feedback to Accepted
- Target version changed from next-patchlevel to 7.2 (Frontend)
- Is Regression set to No
- Target version changed from 7.2 (Frontend) to 7.4 (Backend)
- Target version changed from 7.4 (Backend) to 7.5
- Sprint Focus set to Stabilization Sprint
- 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
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
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF