Gravatar for

Question by yonico, Feb 10, 2015 2:45 PM

Coveo search box standalone

I got the following implemented for the coveo search box standalone.

                            <div id="searchBox" class="search-block" style="display: block;">

                            <span class="sprite-head-search"></span>
                            <input type="text" class="CoveoQueryBox" placeholder="How can we help?">
                            <input type="submit" class="CoveoSearchButton boton search" value="search">


        //Coveo.$('#search').coveoForSitecore('init', CoveoForSitecore.componentsOptions);

        $('#searchBox').coveo('initSearchBox', urlRedirectForCoveo);

urlRedirectForCoveo has the default page: /en-us/coveo-search-page'

I see that when I click, it first load the page with the query and then redirect me to the default page. Why always redirect me to the default page? it seems to work fine when I use the enter key but not with button click. Do you know what it might be wrong?

0 Reply
Ask a question