[TASK] Return to content element after closing 40/52040/2
authorGeorg Ringer <georg.ringer@gmail.com>
Tue, 14 Mar 2017 13:28:30 +0000 (14:28 +0100)
committerMarkus Klein <markus.klein@typo3.org>
Tue, 14 Mar 2017 14:07:45 +0000 (15: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
Change-Id: Id7cc236819ccd3306d4638cb65e87aee011a35b3
Reviewed-on: https://review.typo3.org/52040
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Josef Glatz <josef.glatz@typo3.org>
Tested-by: Josef Glatz <josef.glatz@typo3.org>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/backend/Classes/View/PageLayoutView.php

index 10748d4..c768dbc 100644 (file)
@@ -2067,7 +2067,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