We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40122
    • 330 Posts

    I have SimpleSearch set up on my site with the search form in the header of each page.

    Currently, the search only works when I am on the home page. If I try to search a key word on any other page nothing happens. This might have something to do with the SSL certificate on the site, but I am not sure.

    My SimpleSearch is set up as such:
    [[!SimpleSearchForm? &landing=`31` &tpl=`SearchBar`]]


    The template looks like:

    <form id="searchbox" action="[[~[[+landing:default=`[[*id]]`]]]]" method="[[+method:default=`get`]]">
            <input id="searchField" class="my_class" type="text" name="search" placeholder="Search"/>
            <button id="searchIcon" class="utilityButton" type="image" alt="Search"><i class="fa fa-search"></i></button>
            <input type="hidden" name="id" value="[[+landing:default=[[*id]]]]" />
    </form>


    After hitting the search button the page does not redirect - it shows the search terms in the URL:

    contact-us.html?search=fish&id=31


    Would anyone know how I could fix this?
      • 40122
      • 330 Posts
      Nevermind, was because of duplicate alias