Skip to content

Conversation

@radimvaculik
Copy link
Member

…1208)

Fixes issue #1208 where URL refreshing stopped working when using filtering or changing items per page. Only pagination via buttons was working.

The problem was that the filterSucceeded() method was adding ALL form filter values to the persistent $filter parameter, including empty ones. This caused URLs to include empty filter parameters like ?grid-filter[name]=, matching the reported regression from version 6.x.

Changes:

  • Only non-empty filter values are now added to the persistent $filter parameter
  • Empty filter values are explicitly unset from $filter
  • The $hasNonEmptyFilter flag is now used to determine if filters are active, instead of just checking if values exist
  • Empty filter values remain stored in session storage for recall, but don't appear in URL parameters

This ensures clean URLs and maintains feature parity with version 6.x.

🤖 Generated with Claude Code

…1208)

Fixes issue #1208 where URL refreshing stopped working when using filtering
or changing items per page. Only pagination via buttons was working.

The problem was that the filterSucceeded() method was adding ALL form filter
values to the persistent $filter parameter, including empty ones. This caused
URLs to include empty filter parameters like ?grid-filter[name]=, matching the
reported regression from version 6.x.

Changes:
- Only non-empty filter values are now added to the persistent $filter parameter
- Empty filter values are explicitly unset from $filter
- The $hasNonEmptyFilter flag is now used to determine if filters are active,
  instead of just checking if values exist
- Empty filter values remain stored in session storage for recall, but don't
  appear in URL parameters

This ensures clean URLs and maintains feature parity with version 6.x.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@radimvaculik radimvaculik force-pushed the fix/issue-1208-url-parameter-handling branch from 5bc173e to aefda3e Compare January 5, 2026 10:23
@radimvaculik radimvaculik requested a review from f3l1x January 5, 2026 10:26
Copy link
Member

@f3l1x f3l1x left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@radimvaculik radimvaculik merged commit 5d3883b into master Jan 6, 2026
10 checks passed
@radimvaculik radimvaculik deleted the fix/issue-1208-url-parameter-handling branch January 6, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants