[GH-ISSUE #1463] Initial filter application does not add filter query parameter to URL #6404

Closed
opened 2026-04-20 17:00:17 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @Plong-Wasin on GitHub (Sep 11, 2025).
Original GitHub issue: https://github.com/go-vikunja/vikunja/issues/1463

Description

When applying a filter for the first time, the URL only includes the page=1 query parameter and does not add the filter parameter. The filter query parameter only appears after performing filtering a second time.

Example behavior:

  • Initial URL without query parameters:
    https://try.vikunja.io/projects/1/247
  • After first filter attempt:
    https://try.vikunja.io/projects/1/247?page=1 (missing filter parameter)
  • After second filter attempt:
    https://try.vikunja.io/projects/1/247?page=1&filter=done+=+true (filter parameter present)

Expected behavior:

  • Applying a filter for the first time should immediately add the corresponding filter query parameter to the URL along with the page parameter.

Steps to reproduce:

  1. Navigate to a project URL with no query parameters (e.g., https://try.vikunja.io/projects/1/247).
  2. Apply a filter (e.g., filtering by done = true).
  3. Observe that only page=1 is appended to the URL but the filter parameter is missing.
  4. Apply the filter again.
  5. Observe that now the filter parameter appears in the URL.

This inconsistent URL updating might lead to confusion or issues when sharing URLs or reloading the page with applied filters.

Vikunja Version

v1.0.0-rc1-128-e5e0413b

Browser and version

No response

Can you reproduce the bug on the Vikunja demo site?

Yes

Screenshots

No response

Originally created by @Plong-Wasin on GitHub (Sep 11, 2025). Original GitHub issue: https://github.com/go-vikunja/vikunja/issues/1463 ### Description When applying a filter for the first time, the URL only includes the `page=1` query parameter and does not add the filter parameter. The filter query parameter only appears after performing filtering a second time. Example behavior: - Initial URL without query parameters: `https://try.vikunja.io/projects/1/247` - After first filter attempt: `https://try.vikunja.io/projects/1/247?page=1` (missing filter parameter) - After second filter attempt: `https://try.vikunja.io/projects/1/247?page=1&filter=done+=+true` (filter parameter present) Expected behavior: - Applying a filter for the first time should immediately add the corresponding filter query parameter to the URL along with the page parameter. Steps to reproduce: 1. Navigate to a project URL with no query parameters (e.g., `https://try.vikunja.io/projects/1/247`). 2. Apply a filter (e.g., filtering by done = true). 3. Observe that only `page=1` is appended to the URL but the filter parameter is missing. 4. Apply the filter again. 5. Observe that now the filter parameter appears in the URL. This inconsistent URL updating might lead to confusion or issues when sharing URLs or reloading the page with applied filters. ### Vikunja Version v1.0.0-rc1-128-e5e0413b ### Browser and version _No response_ ### Can you reproduce the bug on the Vikunja demo site? Yes ### Screenshots _No response_
Author
Owner

@kolaente commented on GitHub (Sep 11, 2025):

Fixed in https://github.com/go-vikunja/vikunja/pull/1471, please check with the next unstable build (should be ready for deployment in ~30min, also on try).

<!-- gh-comment-id:3281499736 --> @kolaente commented on GitHub (Sep 11, 2025): Fixed in https://github.com/go-vikunja/vikunja/pull/1471, please check with the next unstable build (should be ready for deployment in ~30min, also on [try](https://try.vikunja.io)).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#6404