Skip to content

Commit 24f6161

Browse files
authored
BUGFIX: Fix action & argument in AJAX search docs
Fixes #30
1 parent 57e128d commit 24f6161

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ In case you need to build the URI to the suggest controller yourself, this is wh
5959

6060
The plugin comes with a controller that can be reached like this per default, using `GET`:
6161

62-
{f:uri.action(action: 'index', controller: 'AjaxSearch', package: 'Flowpack.SearchPlugin', absolute: 1)}
62+
{f:uri.action(action: 'search', controller: 'AjaxSearch', package: 'Flowpack.SearchPlugin', arguments: {node: node, q: ''}, absolute: 1)}
6363

6464
It expects the search term as a parameter named `q` (as defined in `AjaxSearch.fusion`). This controller
6565
renders the search results and returns them as HTML without any of the page template. It can therefore

0 commit comments

Comments
 (0)