[TASK] Return to content element after closing 53/52053/2
authorGeorg Ringer <georg.ringer@gmail.com>
Tue, 14 Mar 2017 13:28:30 +0000 (14:28 +0100)
committerMarkus Klein <markus.klein@typo3.org>
Wed, 15 Mar 2017 11:07:34 +0000 (12:07 +0100)
Add the current content element as section to the edit link.
Since #70074, the edit link in the header has been already
improved but other links have been missing.

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

index 7de5ec9..4b3f74d 100644 (file)
@@ -1903,7 +1903,7 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
                         $row['uid'] => 'edit'
                     ]
                 ],
-                'returnUrl' => GeneralUtility::getIndpEnv('REQUEST_URI')
+                'returnUrl' => GeneralUtility::getIndpEnv('REQUEST_URI') . '#element-tt_content-' . $row['uid']
             ];
             $url = BackendUtility::getModuleUrl('record_edit', $urlParameters);
             // Return link