Filter identifier special chars

Created on 24 February 2025, 2 months ago

Problem/Motivation

When you create a facet using a taxonomy with specail chars like "Yolo & Yolo2" or "Yolo, Yolo2, yolo3" those are valid taxonmy term, and you use the "Filter identifier" in views, this will cause an issue when you will do the filtering, because those are not valide chars:
This will appear in the URL after the ? to identify this filter. Cannot be blank. Only letters, digits and the dot ("."), hyphen ("-"), underscore ("_"), and tilde ("~") characters are allowed. "value", "q", "destination", "_format", "_wrapper_format", "token" are reserved words and cannot be used.

Steps to reproduce

Create a taxonomy term with sepcial chars, and then create a view with exposed filter, and in the attachement retrive the value using a query parameter and select "allow multiple parameter",

Proposed resolution

Instead of using the taxonony term, use the machine name taxonomy term, this machine name is already translitered

Remaining tasks

change the code to pass the machine name in the url instead of the taxonomy term

User interface changes

nothing

API changes

nothing

Data model changes

nothing

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇨🇭Switzerland sir_squall

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

Comments & Activities

  • Issue created by @sir_squall
  • 🇨🇭Switzerland sir_squall

    I have also found another bug related to that, if you have a multi language website, when you switch the language, and you are filtering using the taxonomy terms, then the search is not working anymore, we land in a page with no results.

Production build 0.71.5 2024