[BUGFIX] Return to content element after closing 23/49123/3
authorK J Kooistra <k.kooistra@youwe.nl>
Wed, 20 Jul 2016 08:39:37 +0000 (10:39 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Thu, 21 Jul 2016 09:36:14 +0000 (11:36 +0200)
When editing a content element in the page module and (saving and)
closing it the view will now jump back to the content element.
This is especially useful for pages with a lot of content.

Resolves: #70074
Releases: master,7.6
Change-Id: Ica27bb561f3b3c19c56b38d211a75e22e018e090
Reviewed-on: https://review.typo3.org/49123
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/backend/Classes/View/PageLayoutView.php

index 7bd68fe..568b395 100644 (file)
@@ -1396,7 +1396,7 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
                             $this->tt_contentData['nextThree'][$row['uid']] => 'edit'
                         ]
                     ],
-                    'returnUrl' => GeneralUtility::getIndpEnv('REQUEST_URI')
+                    'returnUrl' => GeneralUtility::getIndpEnv('REQUEST_URI') . '#element-tt_content-' . $row['uid'],
                 ];
                 $url = BackendUtility::getModuleUrl('record_edit', $urlParameters) . '#element-tt_content-' . $row['uid'];