Bug #50364
closedAdminPanel: Link called "Open TYPO3 Backend" opens FrontEnd in new window
100%
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.
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?
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.
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.
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.
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
Updated by Mathias Schreiber almost 10 years ago
- Target version changed from next-patchlevel to 7.2 (Frontend)
- Is Regression set to No
Updated by Benni Mack over 9 years ago
- Target version changed from 7.2 (Frontend) to 7.4 (Backend)
Updated by Susanne Moog over 9 years ago
- Target version changed from 7.4 (Backend) to 7.5
Updated by Benni Mack about 9 years ago
- Sprint Focus set to Stabilization Sprint
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
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
Updated by Benni Mack about 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 30316229a5776cd01da49861086b89310b56e9d8.
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed