Make compatible with Facets Pretty Paths

Created on 2 June 2025, 21 days ago

Problem/Motivation

Need to be able to make URLs that look like:

/projects/services/film-media

(where "projects" is the View, "services" is the configurable key for the facet, and "film-media" is a more URL-friendly version of the taxonomy term name "Film & Media" β€” will have to follow the same logic / code as Facets Pretty Paths β†’ here.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

1.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mlncn Minneapolis, MN, USA

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

Merge Requests

Comments & Activities

  • Issue created by @mlncn
  • πŸ‡ΊπŸ‡ΈUnited States mlncn Minneapolis, MN, USA

    The above is one particular configuration of Facets Pretty Paths, i should note. Not sure if there is any reasonable way to support all the configurations without doing what Entity Reference Facet Link does and interrogate the facet itself for its configuration, and i am over here because seems that would be very hard to do for Facets 3β€” πŸ’¬ Facet links created perfectly except with a colon rather than Active

    But making this one way possible will be very helpful i think and make it more possible for others to riff on this.

  • πŸ‡ΊπŸ‡ΈUnited States mlncn Minneapolis, MN, USA

    Huh i'm not really sure facets pretty paths, where there is no query portion, fully makes sense with this module… well, it should work fine but as i mused above the sheer number of possible configurations for pretty paths seems not a great match to the current configuration approach of entity ref filtering link.

  • πŸ‡ΊπŸ‡ΈUnited States mlncn Minneapolis, MN, USA

    It's not too bad for this use case! And on further inspection, this covers one of three to four effective outputs of the six configurations that Facets Pretty Paths offers.

    In Entity Ref Filtering Link terms, the other options are:

    /$view_url/$argument/$id
    /$view_url/$argument/$pathautod_label-$id

    (With URL-encoded raw value as an option for the first one, but as long as that is an integer ID i don't see how that could effectively matter.)

    The option this merge request covers:

    /$view_url/$argument/$pathautod_label

    is certainly the prettiest. In Facets Pretty Paths this is the Taxonomy term name option, "Use term name, e.g. /services/blue"

Production build 0.71.5 2024