Problem/Motivation

It looks like the Range Slider widget submits special characters such as ():, URL encoded.

I can manually update this URL:
https://example.org/kort/hou/%28min%3A20000%2Cmax%3A48000%29

... to this:
https://example.org/kort/hou/(min:20000,max:48000)

... and everything works fine.

Curiously, raw values (as desired) are used right after saving the facet, if there are facet values present in the URL. Maybe because the values are not submitted via the slider.js jQuery file?

Steps to reproduce

Add a Range Slider widget, use it and see that special characters such as ():, are URL encoded in the address bar, like this:

https://example.org/kort/hou/(min%3A4000%2Cmax%3A36000)

When copied from the address bar, and pasted into a text editor:
https://example.org/kort/hou/%28min%3A4000%2Cmax%3A36000%29

Proposed resolution

Is URL decoding the values, before submitting them in the slider.js jQuery file a workable solution?

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork facets-3421560

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

ressa created an issue. See original summary.

ressa’s picture

Issue summary: View changes
ressa’s picture

Issue summary: View changes
ressa’s picture

ressa’s picture

Issue summary: View changes
ressa’s picture

Issue summary: View changes
ressa’s picture

Title: URL encoded only works right after saving » Range slider submits URL encoded values
Issue summary: View changes
ressa’s picture

Issue summary: View changes
ressa’s picture

Project: Facets Pretty Paths » Facets
Version: 2.0.0 » 2.0.6
Issue summary: View changes

Moving to Facets, since the source of the URL encoded values is facets_range_widget/js/slider.js.

ressa’s picture

Version: 2.0.6 » 2.0.x-dev
Assigned: Unassigned » ressa

ressa’s picture

Assigned: ressa » Unassigned
Status: Active » Needs review