Small feature request: Unselecting an attribute goes to new “page”

  • mcl7
    Participant
    3 years, 3 months ago #23809

    After selecting a facet, if you deselect the same facet it produces a new URL which is uncached. It would be ideal that when only one facet is selected and then deselected that it just goes back to the original URL and the load of course is almost instant.

    Example URL after user selects a facet:
    categoryname/?wpsolr_fq%5B0%5D=yith_product_brand_str%3ABeans
    URL displayed after user unselects the facet:
    categoryname/?wpsolr_fq%5B0%5D=yith_product_brand_str%3A
    intead of just resolving back to the original URL:
    categoryname/
    This is a non-issue for people that are allowing users to select multiple facets but on my site I am only allowing for one facet to be selected at a time.
    Thoughts?

    mcl7
    Participant
    3 years, 3 months ago #23810

    I tried to format this post properly…

    wpsolr
    Keymaster
    3 years, 3 months ago #23816

    Adding the empty parameter url when deselecting the filter is built on purpose to enable UI tuning with javascript.

    For instance, you could decide to collapse the whole facet group on deselection, or change its colour, or add a dynamic message.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.