Hi,
I'm using the standart Search Form setup. By default it displays the results attached to the URL of the page the search was coming from, for example:
/about/Search?Search=test ...
/contact/Search?Search=test ...
I'm trying to direct all search results to display under the same url like:
/search/Search?Search=test ...
I was doing it using $form->setFormAction :
$fields = new FieldSet( new TextField("Search", "Search", '') );
$searchAction = new FieldSet( new FormAction('results', 'Search') );
$form = new SearchForm($this, "MetaSearch", $fields,$searchAction);
$form->setFormAction(Director::baseURL().'results/Search');
BUT it does not work with IE for some reason. Other browsers append the variable "&action_results=Search" but IE doesn't. It's really frustrating ... now I'm wondering if there is another, better, way to achieve this?
Thanks for any hint!