[BUGFIX] Add url for linkToTop in css_styled_content 78/57778/3
authorJoerg Kummer <typo3@enobe.de>
Thu, 2 Aug 2018 12:57:53 +0000 (14:57 +0200)
committerBenni Mack <benni@typo3.org>
Mon, 29 Oct 2018 10:36:22 +0000 (11:36 +0100)
This adds current URL to the ToTop link when css_styled_content is used.
Fixes broken linkToTop URL's since config.prefixLocalAnchors was removed.
Also compatible with TYPO3 v7 where compatibility6 is installed
and typoscript config.prefixLocalAnchors is configured.

Resolves: #81202
Releases: 8.7, 7.6
Change-Id: Id7b9f1c24575de297d2ca60af686fd6d299343e2
Reviewed-on: https://review.typo3.org/57778
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Johannes Seipelt <johannes.seipelt@3m5.de>
Reviewed-by: Riny van Tiggelen <info@online-gamer.nl>
Reviewed-by: Richard Vollebregt <richard.vollebregt@maxserv.com>
Reviewed-by: Rudy Gnodde <rgn@windinternet.nl>
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>
typo3/sysext/css_styled_content/static/setup.txt
typo3/sysext/css_styled_content/static/v6.2/setup.txt

index 717dd55..e38e1aa 100644 (file)
@@ -538,7 +538,7 @@ tt_content.stdWrap {
                }
        }
 
-       innerWrap2 = | <p class="csc-linkToTop"><a href="#">{LLL:EXT:css_styled_content/Resources/Private/Language/locallang.xlf:label.toTop}</a></p>
+       innerWrap2 = | <p class="csc-linkToTop"><a href="{getIndpEnv:TYPO3_REQUEST_URL}#">{LLL:EXT:css_styled_content/Resources/Private/Language/locallang.xlf:label.toTop}</a></p>
        innerWrap2.insertData = 1
        innerWrap2.fieldRequired = linkToTop
 
index 6068d89..cfc36e6 100644 (file)
@@ -546,7 +546,7 @@ tt_content.stdWrap {
                }
        }
 
-       innerWrap2 = | <p class="csc-linkToTop"><a href="#">{LLL:EXT:css_styled_content/Resources/Private/Language/locallang.xlf:label.toTop}</a></p>
+       innerWrap2 = | <p class="csc-linkToTop"><a href="{getIndpEnv:TYPO3_REQUEST_URL}#">{LLL:EXT:css_styled_content/Resources/Private/Language/locallang.xlf:label.toTop}</a></p>
        innerWrap2.insertData = 1
        innerWrap2.fieldRequired = linkToTop