Skip to content

Commit

Permalink
[BUGFIX] Keep MP parameters upon redirect of overlay
Browse files Browse the repository at this point in the history
When a mount point, that is overlayed, redirects to the overlaying page,
don't throw away existing mount point parameters. The other mount point
parameters may specify a mount point upwards in the root line.

Under normal circumstances the page should not be linked at all. However
a redirect is provided and as it is provided it should work as expected.

Releases: master
Resolves: #81251
Change-Id: I4cf830e5b24ebc9799e58f83d7787a726f92a3d4
Reviewed-on: https://review.typo3.org/52829
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
  • Loading branch information
elmar-hinz authored and bmack committed Oct 28, 2018
1 parent 020d8ca commit 02f8414
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -1610,7 +1610,11 @@ protected function getPageAndRootline()
. 'mounts a page which is not accessible (ID ' . $this->originalMountPointPage['mount_pid'] . ').';
throw new PageNotFoundException($message, 1402043263);
}
$this->MP = $this->page['uid'] . '-' . $this->originalMountPointPage['uid'];
if ($this->MP === '') {
$this->MP = $this->page['uid'] . '-' . $this->originalMountPointPage['uid'];
} else {
$this->MP .= ',' . $this->page['uid'] . '-' . $this->originalMountPointPage['uid'];
}
$this->id = $this->page['uid'];
}
// Gets the rootLine
Expand Down

0 comments on commit 02f8414

Please sign in to comment.