Configure the search URL in CGridView

I’m using a grid within a modal window (CJuiDialog) that does a search on a controller different from the open page.

However, there is no such setting on the grid, which takes the url of AJAX in a title attribute in the html page, which always points to the url of the page requested.

To get what he needed, had to use a not very elegant solution, overwriting the $. fn.yiiGridView.getUrl in javascript.