Ajax Request Change Current Url

Hi

I’m using CListView and its sort feature.

I understand that when the sort link is clicked, it sends an ajax request and get back the required activedataprovider.

How can I change the current URL based on the ajaxURL being triggered by the sort link without reload or anything?

Use enableHistory.

Thanks that works.

What about other ajax calls? Are we only able to change it through javascript in success method? Or is there something like ajax(…, array(enableHistory=>true))?

Also is there a function like setCurrentUrl()?