[BUGFIX] Remove non-needed URL parameter for standard search 14/25314/3
authorTomita Militaru <militarutomita@gmail.com>
Tue, 12 Nov 2013 14:57:56 +0000 (16:57 +0200)
committerMarkus Klein <klein.t3@mfc-linz.at>
Sun, 6 Jul 2014 21:11:19 +0000 (23:11 +0200)
Removes parameter to prevent duplicate content, speaking
url problems and overloaded urls.

Resolves: #51189
Releases: 6.3, 6.2, 6.1
Change-Id: I076d2f87ac7a1d0d9d831cf3293d060318750c7d
Reviewed-on: https://review.typo3.org/25314
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/indexed_search/Classes/Controller/SearchFormController.php

index 69d01fc..d0c64f7 100644 (file)
@@ -1436,7 +1436,7 @@ class SearchFormController extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin {
                        $html = $this->cObj->substituteSubpart($html, '###SEARCH_FORM_EXTENDED###', '');
                }
                if ($this->conf['show.']['advancedSearchLink']) {
-                       $linkToOtherMode = $this->piVars['ext'] ? $this->pi_getPageLink($GLOBALS['TSFE']->id, $GLOBALS['TSFE']->sPre, array($this->prefixId . '[ext]' => 0)) : $this->pi_getPageLink($GLOBALS['TSFE']->id, $GLOBALS['TSFE']->sPre, array($this->prefixId . '[ext]' => 1));
+                       $linkToOtherMode = $this->piVars['ext'] ? $this->pi_getPageLink($GLOBALS['TSFE']->id, $GLOBALS['TSFE']->sPre) : $this->pi_getPageLink($GLOBALS['TSFE']->id, $GLOBALS['TSFE']->sPre, array($this->prefixId . '[ext]' => 1));
                        $markerArray['###LINKTOOTHERMODE###'] = '<a href="' . htmlspecialchars($linkToOtherMode) . '">' . $this->pi_getLL(($this->piVars['ext'] ? 'link_regularSearch' : 'link_advancedSearch'), '', TRUE) . '</a>';
                } else {
                        $markerArray['###LINKTOOTHERMODE###'] = '';