I’m building a site using v2.7.2 - Build Date: 20131008. My simple search is set up like this:
{exp:search:simple_form channel="gallery" search_in="entries" result_page="search/gallery_results" no_result_page="content/not_found"}
<h2>Search the Image Collections:</h2>
<p> <br />
<input type="text" name="keywords" id="keywords" placeholder="Enter keywords" size="22" maxlength="100" class="search"></p>
<p> <input type="submit" class="go_button" value="Search" ><br />
<br />
{/exp:search:simple_form}If I type in a valid search term, it all works fine. But if I type in a term that yields no results, my template doesn’t appear. Instead I get the standard “Search Results: Your search did not return any results. Return to Previous Page.” When I tap “return” and enter a new search term, I get: “The following errors were encountered. The action you have requested is invalid. Return to Previous Page.”
The no_result template is in template_group/template format.
Typically, when I’ve encountered an EE component that isn’t working, I’ve coded something incorrectly, but I can’t see my mistake on this one.