Skip to content

Commit

Permalink
Merge pull request #521 from jeroenvermeulen/fix-search-box
Browse files Browse the repository at this point in the history
Fix for search input field on search results page
  • Loading branch information
miguelbalparda committed Jun 24, 2015
2 parents af63cf7 + 8cb2594 commit d4211ec
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions app/design/frontend/base/default/layout/turpentine_esi.xml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,25 @@
-->
</catalog_product_compare_index>

<!-- Catalog Search -->

<!--
If the search input box is inside the header, it needs to contain the current search string after searching.
The block below overrules the ESI Options for the header on the search results page.
We change the scope of the header to "page", so the current URL is passed to the ESI request.
We set the TTL to 0, because the same user is probably not going to search for the same string again.
-->
<catalogsearch_result_index>
<reference name="header">
<action method="setEsiOptions">
<params>
<access>private</access>
<scope>page</scope>
<ttl>0</ttl>
</params>
</action>
</reference>
</catalogsearch_result_index>

<!-- Checkout -->

Expand Down

0 comments on commit d4211ec

Please sign in to comment.