We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Simple Search tag not honoring "results_page" parameter

How Do I?

emekstudios's avatar
emekstudios
1 posts
10 years ago
emekstudios's avatar emekstudios

I am using a simple search tag in the header of my page with the following code:

<div id="search">
{exp:search:simple_form channel="products" result_page="store/search_results"}
 <input type="search" name="keywords" id="keywords" placeholder="Search">
  <input type="submit" value="go">
{/exp:search:simple_form}

</div>

I have validated that the template path is correct, and no matter what I put here, I get the following code rendered, which always points the form action back to the index page:

<div id="search">
<form method="post" action="http://www.sitename.com/index.php"  >
<div class='hiddenFields'>
<input type="hidden" name="ACT" value="6" />
<input type="hidden" name="RES" value="" />
<input type="hidden" name="meta" value="uflbUcvTaROF3swL6NGbC5TbUKo8WkynM1VMORMoHW/+ZqV+7+l+gnHKybVEDmHxnl6z1vuXNPI6OlR35pqfMjpUfw52sXsjLh2u2/8DQpOzSX53sa1j88kTCUcmMG91hSRaBroYLSvIVB0mXUb2zNl+REYSBroFtHCKvrH/LyjaRhyHpzkUi9F9Ga0FdtmqfddydbHp/IENx7hoUJJx01U3PIo6b86KNa3QTYysz9pGQuhO3+0u58BEn41mzJkPto48lWieJ8+qidk6mzLQd8l58e+H/3yII3VQ9HP9C1lTaRgjoC82KU9bDxKPw7Hd5rTHZLNrws8VPlhlmVT+uA==" />
<input type="hidden" name="site_id" value="1" />
<input type="hidden" name="csrf_token" value="0f2e7bde32d33718025586b226dfc3b39b80faba" />
</div>

 <input type="search" name="keywords" id="keywords" placeholder="Search">
  <input type="submit" value="go">
</form>

</div>

I have tried also adding a companion “no_results_page” parameter per another thread, but none of this actually seems to work. Performing a search, as expected, causes no results page to be displayed.

Removing the parameters completely results in the same behavior.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.