Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Cross-posting a D8 issue. #2703771: Views argument set incorrectly when using AJAX pagination and a path alias
Haven't tested this in D7, but I suspect the same issue applies given how similar the JS code is for both.
Comment | File | Size | Author |
---|---|---|---|
#15 | views-n2805539-15.patch | 5.11 KB | DamienMcKenna |
#10 | 2805539-js-views-arg-10.patch | 767 bytes | ron_s |
| |||
#2 | 2805539-js-views-arg-2.patch | 539 bytes | Sam152 |
Comments
Comment #2
Sam152 CreditAttribution: Sam152 at PreviousNext commentedComment #3
Sam152 CreditAttribution: Sam152 at PreviousNext commentedComment #4
Sam152 CreditAttribution: Sam152 at PreviousNext commentedComment #5
riddhi.addweb CreditAttribution: riddhi.addweb at AddWeb Solution Pvt. Ltd. commentedComment #6
qzmenkoI confirm problem with Ajax Views and GET arguments in url. Clicking on "First", "1" links in pager is not working.
Patch testing:
Comment #7
qzmenkoComment #9
xyxxznpm CreditAttribution: xyxxznpm as a volunteer commentedThe patch in #2 does not work for me. My case is after using load more button the currentpath=views/ajax, not the real path alias. Continue search.....
Comment #10
ron_s CreditAttribution: ron_s commentedThe patch in #2 no longer applies cleanly to the latest Views release due to changes in spacing and additional lines.
Have created a new version for review, see attached.
Comment #11
generalredneckWe've been using this on production since November. Simple, elegant and works.
Comment #12
renatogReally worked
Comment #13
DamienMcKennaAny thoughts on test coverage for this? Are there any chances of regressions from the change?
Comment #14
DamienMcKennaFYI the code this changes has existed like this since it was originally written in 2011 in #1294636: Objectify ajax_view.js. Should we be concerned at other uses of Drupal.Views.parseViewArgs()?
Comment #15
DamienMcKennaStarting on test coverage.