- ๐ฎ๐ณIndia vinmayiswamy
Hi everyone,
Iโve tried to reproduce this issue described in the issue description by following the steps mentioned. Hereโs a summary of my findings:
Commit Analysis:
- The recent commit d251a98 includes a relevant fix in theviews/js/base.js
file that addresses a similar issue.
- The updated code now includes logic to handle cases where query parameters might be empty, which aligns with the changes proposed in the patch for this issue.Code Comparison:
Original Patch Diff:- if (pair[0] !== 'q' && pair[1]) { + if (pair[0] && pair[0] !== 'q') {
Recent Commit Diff:
- if (pair[0] !== 'q' && pair[1]) { - args[decodeURIComponent(pair[0].replace(/\+/g, ' '))] = - decodeURIComponent(pair[1].replace(/\+/g, ' ')); + if (pair[0] !== 'q') { + if (pair[1]) { + args[decodeURIComponent(pair[0].replace(/\+/g, ' '))] = + decodeURIComponent(pair[1].replace(/\+/g, ' ')); + } else { + args[decodeURIComponent(pair[0].replace(/\+/g, ' '))] = ''; + }
Findings:
- The recent commit ensures that query parameters are handled correctly even if their values are empty, resolving the issue of incorrect pagination and filtering behavior.
- I have tested the functionality in Drupal 11.x, and the filtering and pagination work as expected.Given that the recent commit appears to resolve the issue and the functionality works correctly in Drupal 11.x, the patch proposed in this issue may no longer be necessary.
Request for Feedback:
- If there are any additional steps or scenarios that I may have overlooked while reproducing the issue, I would be grateful if you could share them with me.
- I would greatly appreciate any guidance on whether further action is required or if there are any other aspects I should consider.Thanks!