I have a custom AJAX app which allows the user to filter some nodes, which uses a View. By custom AJAX app, I mean that this is not just a view with AJAX enabled.
The user accesses
/reports which includes the output of
views_embed_view(). An AJAX-enabled browser interacts with the page, resulting in an AJAX call to
/reports/ajax to fetch just the results and save a full page re-load.
It all works, except that the results returned by the View in this case use
/reports/ajax as the base URL for the pager (because that's the path used to invoke the custom AJAX controller), which means that when the user clicks one, they get a page of AJAX response.
I would like to train Views to use a different URL (i.e.
/reports) for pager requests. Beyond a
str_replace in the output of
views_embed_view(), is there another way?