[BUGFIX] Add url for linkToTop in css_styled_content 75/57775/3
authorJoerg Kummer <typo3@enobe.de>
Thu, 2 Aug 2018 11:17:38 +0000 (13:17 +0200)
committerBenni Mack <benni@typo3.org>
Mon, 29 Oct 2018 10:36:29 +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/57775
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Richard Vollebregt <richard.vollebregt@maxserv.com>
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/Configuration/TypoScript/setup.txt

index 1862780..fbc1d21 100644 (file)
@@ -108,7 +108,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
     prepend = TEXT