Range filters are not handled correctly

Created on 9 June 2023, over 1 year ago

Problem/Motivation

Min & Max values of range filters are not added to the URL correctly. The required [min] and [max] additions are rewriten as [].

Steps to reproduce

  1. Add a range filter for a numeric value to the view. E.g. field_name/li>
  2. Set the min & max filter values and apply the filter.
  3. The following query params are added to the URL: ?field_name[]=1&field_name[]=2.

The correct params would be: ?field_name[min]=1&field_name[min]=2

Proposed resolution

Adjust the section in the JS where strings between brackets are removed.

🐛 Bug report
Status

Closed: won't fix

Version

1.7

Component

Code

Created by

🇨🇭Switzerland danielwirz

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

Comments & Activities

Production build 0.71.5 2024