forms - TYPO3 Indexed Search Url on submit -
i use typo3 7.6.10
use indexed_search 7.6.0
when submit form go target page , results. url of target page is:
search.html?tx_indexedsearch_pi2%5baction%5d=search&tx_indexedsearch_pi2%5bcontroller%5d=search
i want remove action , controller variable form url get:
search.html
i can adding configuration real url this:
'searchconfiguration' => array( array( 'getvar' => 'tx_indexedsearch_pi2[action]', 'valuemap' => array(), 'nomatch' => 'bypass' ), array( 'getvar' => 'tx_indexedsearch_pi2[controller]', 'valuemap' => array(), 'nomatch' => 'bypass' )),'135' => 'searchconfiguration'
now nice url submitted data not sent! how can resolve it?
those parameters required controller routed request. without them sword not become processed controller , not results.
instead of bypassing them can rewrite them /search/perform/results/ or can configure form use method="post" instead of "get" , add parameters above hidden fields of form , make sure form attribute not have arguments parameters in action. example form in result:
<form method="post" class="header-search-form hidden-xs hidden-sm" action="suche.html"> <input type="hidden" name="tx_indexedsearch_pi2[controller]" value="search"> <input type="hidden" name="tx_indexedsearch_pi2[action]" value="search"> <div class="input-group"> <input type="text" class="search-query form-control" placeholder="suchen" id="default-search-input" name="tx_indexedsearch_pi2[search][sword]"> <span class="input-group-btn"> <button class="btn" type="button"> <i class="fa fa-search" aria-hidden="true"></i> </button> </span> </div> </form>
Comments
Post a Comment