Problem/Motivation
In 10.1.0-alpha1, when enabling AJAX on a view, it adds ajax_page_state GET parameters to pager links.
The parameters appear after the first AJAX request.
Steps to reproduce
- Go to https://master-rv1x5j2rqmeay3sxncndouqkr9zns6f6.tugboatqa.com/admin/content
- Click on a pager link to trigger an AJAX request.
- Now, pager links have additional AJAX GET parameters.
Proposed resolution
Before #956186: Allow AJAX to use GET requests, we used to have unset($request_all['ajax_page_state']); in ViewAjaxController::ajaxView() but this was removed for some reason.
I think ajax_page_state should now be removed from both GET params before building the URL.
Comments
Comment #2
prudloff commentedI tried adding back
unset($request_all['ajax_page_state']);and addingunset($query_all['ajax_page_state']);but it breaks the view style, so it is probably not the correct way to fix this.Comment #4
neclimdulLooks like the bug, at least as described here, has been fixed in #3364088: Ajax state leaking to Views destination paths.