Standalone search box call twice
I try to set a different url than current page for my page results. I do this :
<div class="coveo-search-section-wrapper" id="searchBox" data-mycoveo-searchurl="/search"> <div class="CoveoSearchBox" data-activate-omnibox="true"></div>
After that, I call the 'init' event :
'#search' is call from my body tag and so on each page load. My searchBox component is inside my body tag.
The problem is my input text box is called twice in my html markup. I think it's initialize on both event.
Any ideas ?
-- EDIT : Solution --
It's documented here : https://developers.coveo.com/display/JsSearch/Standalone+Search+Box
You don't need to call 'init' when using 'initSearchBox' --- that explains the double call I think.
Also, I'm not sure how $searchBox can work, but maybe I'm missing something?