[!!!][TASK] Remove setting config.uniqueLinkVars 21/34021/4
authorGeorg Ringer <georg.ringer@gmail.com>
Wed, 12 Nov 2014 15:46:28 +0000 (16:46 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 12 Nov 2014 19:20:39 +0000 (20:20 +0100)
The setting *config.uniqueLinkVars* is removed as the
behaviour is now always used.

Resolves: #62888
Releases: master
Change-Id: I016cc74a6f4e450dcfc7678bca5ef6cfcb066be6
Reviewed-on: http://review.typo3.org/34021
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/TypoScript/TemplateService.php
typo3/sysext/core/Documentation/Changelog/master/Breaking-62888-RemoveUniqueLinkVars.rst [new file with mode: 0644]
typo3/sysext/frontend/ext_localconf.php
typo3/sysext/t3editor/res/tsref/tsref.xml

index b83d2dc..295271c 100644 (file)
@@ -1479,14 +1479,10 @@ class TemplateService {
                // noCache
                $LD['no_cache'] = trim($page['no_cache']) || $no_cache ? '&no_cache=1' : '';
                // linkVars
-               if ($GLOBALS['TSFE']->config['config']['uniqueLinkVars']) {
-                       if ($addParams) {
-                               $LD['linkVars'] = GeneralUtility::implodeArrayForUrl('', GeneralUtility::explodeUrl2Array($GLOBALS['TSFE']->linkVars . $addParams), '', FALSE, TRUE);
-                       } else {
-                               $LD['linkVars'] = $GLOBALS['TSFE']->linkVars;
-                       }
+               if ($addParams) {
+                       $LD['linkVars'] = GeneralUtility::implodeArrayForUrl('', GeneralUtility::explodeUrl2Array($GLOBALS['TSFE']->linkVars . $addParams), '', FALSE, TRUE);
                } else {
-                       $LD['linkVars'] = $GLOBALS['TSFE']->linkVars . $addParams;
+                       $LD['linkVars'] = $GLOBALS['TSFE']->linkVars;
                }
                // Add absRefPrefix if exists.
                $LD['url'] = $GLOBALS['TSFE']->absRefPrefix . $LD['url'];
diff --git a/typo3/sysext/core/Documentation/Changelog/master/Breaking-62888-RemoveUniqueLinkVars.rst b/typo3/sysext/core/Documentation/Changelog/master/Breaking-62888-RemoveUniqueLinkVars.rst
new file mode 100644 (file)
index 0000000..7316451
--- /dev/null
@@ -0,0 +1,15 @@
+===============================================
+Breaking: #62888 - Remove config.uniqueLinkVars
+===============================================
+
+Description
+===========
+
+The setting *config.uniqueLinkVars* is removed as the behaviour is
+now always used.
+
+
+Migration
+=========
+
+Remove the setting *config.uniqueLinkVars* from the TypoScript.
index 99d9ba5..9b3406b 100644 (file)
@@ -14,7 +14,6 @@ if (TYPO3_MODE === 'FE' && !isset($_REQUEST['eID'])) {
        'frontend',
        'setup',
        'config.extTarget = _top'
-       . LF . 'config.uniqueLinkVars = 1'
 );
 
 
index 0feeb5a..62f024b 100644 (file)
@@ -1073,10 +1073,6 @@ Will create a link to page with id 29 and add GET parameters where the return UR
                        <default><![CDATA[
 ]]></default>
                </property>
-               <property name="uniqueLinkVars" type="boolean">
-                       <description><![CDATA[It might happen that TYPO3 generates links with the same parameter twice or more. This is no problem because only the last parameter is used, thus the problem is just a cosmetical one.]]></description>
-                       <default><![CDATA[0]]></default>
-               </property>
                <property name="xhtmlDoctype" type="string">
                        <description><![CDATA[Sets the document type for the XHTML version of the generated page.