[TASK] Correct view webpage link anchor in list module 37/52337/2
authorGianluigi Martino <gmartino27@gmail.com>
Mon, 3 Apr 2017 12:18:46 +0000 (14:18 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Fri, 7 Apr 2017 20:17:23 +0000 (22:17 +0200)
Without this patch you land to the top of the page if you open the preview
of a content element in list module. Adding "c" as letter to the anchor
link the browser scroll to the desired content element.

Resolves: #80598
Releases: master, 7.6
Change-Id: Ief0c3764a57911f9dd46dd7b9e19be964b0e2671
Reviewed-on: https://review.typo3.org/52337
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Joerg Boesche <typo3@joergboesche.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Mona Muzaffar <mona.muzaffar@gmx.de>
Tested-by: Mona Muzaffar <mona.muzaffar@gmx.de>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php

index 686013f..9e83ce8 100644 (file)
@@ -1461,7 +1461,7 @@ class DatabaseRecordList extends AbstractDatabaseRecordList
                         ($table === 'tt_content' ? $this->id : $row['uid']),
                         '',
                         '',
-                        ($table === 'tt_content' ? '#' . $row['uid'] : '')
+                        ($table === 'tt_content' ? '#c' . $row['uid'] : '')
                     )
                 ) . '" title="' . htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.showPage')) . '">'
                 . $this->iconFactory->getIcon('actions-view', Icon::SIZE_SMALL)->render() . '</a>';