When Filter Identified in URL, reset does not work

Created on 3 October 2023, about 1 year ago
Updated 5 September 2024, 4 months ago

Problem/Motivation

Filters allow filter identifier in URL to set filter. When set, "reset" fails.

Steps to reproduce

Create a view with exposed filters and ajax enabled.

On page with view, hit with filter identifier, observe reset does not work.

Proposed resolution

For reset to work with ajax enabled, but reset URL and clear filter

Data model changes

I can see in the repo "usesAjax()" was added to replace the "if (uri.indexOf("?") > 0)", this is breaking though as we need ajax AND filter via URL.

I couldnt find the original issue "usesAjax()" came from to comment there instead.

Thanks!

🐛 Bug report
Status

Postponed: needs info

Version

2.0

Component

Code

Created by

🇨🇦Canada nicole.harnish Halifax

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024