I have an element that contains this form:
<?php
echo $this->Form->create('PrototypeItem', array(
'url' => array('instance' => $instance['PrototypeInstance']['slug'])
, 'class' => 'simple-search'
, 'action' => '/search'
));
echo $this->Form->input('search', array(
'label' => 'Search',
'type' => 'text'
));
echo $this->Form->end('Search');
?>
<!-- code for displaying search results here -->
Previously, the element was called on a page located at site.com/realtor-documents/search, and it worked fine.
However, the designer has asked me to move the search form to site.com/realtor-documents, to eliminate an extra click. So the form is at /realtor-documents now, but when I submit it, it still redirects to /realtor-documents/search. I'd like the results to appear on the same page as the form, /realtor-documents. How can I do that?