Skip to content

Commit

Permalink
[BUGFIX] Use URI of request for „Open in new window“
Browse files Browse the repository at this point in the history
Resolves: #84487
Related: #84195
Releases: master
Change-Id: I2976ea291319893b25a537715e2effbbef50ef81
Reviewed-on: https://review.typo3.org/56370
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Stephan Großberndt <stephan.grossberndt@typo3.org>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
  • Loading branch information
andreaskienast authored and NeoBlack committed Apr 5, 2018
1 parent df273d0 commit 8d457a6
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -1644,9 +1644,11 @@ protected function getButtons(ServerRequestInterface $request): void

$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()
Expand Down

0 comments on commit 8d457a6

Please sign in to comment.