Commit 8d457a65 authored by Andreas Fernandez's avatar Andreas Fernandez Committed by Frank Nägler
Browse files

[BUGFIX] Use URI of request for „Open in new window“

Resolves: #84487
Related: #84195
Releases: master
Change-Id: I2976ea291319893b25a537715e2effbbef50ef81
Reviewed-on: https://review.typo3.org/56370

Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: Stephan Großberndt's avatarStephan Großberndt <stephan.grossberndt@typo3.org>
Reviewed-by: default avatarStefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: default avatarStefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Frank Nägler's avatarFrank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Nägler's avatarFrank Naegler <frank.naegler@typo3.org>
parent df273d08
......@@ -1644,9 +1644,11 @@ class EditDocumentController
$closeUrl = $this->getCloseUrl();
if ($this->returnUrl !== $closeUrl) {
$scriptName = $request->getAttribute('normalizedParams')->getScriptName();
$requestUri = GeneralUtility::linkThisScript([
'returnUrl' => $closeUrl,
]);
$aOnClick = 'vHWin=window.open('
. GeneralUtility::quoteJSvalue($scriptName . '?returnUrl=' . $closeUrl) . ','
. GeneralUtility::quoteJSvalue($requestUri) . ','
. GeneralUtility::quoteJSvalue(md5($this->R_URI))
. ',\'width=670,height=500,status=0,menubar=0,scrollbars=1,resizable=1\');vHWin.focus();return false;';
$openInNewWindowButton = $this->moduleTemplate->getDocHeaderComponent()->getButtonBar()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment