Fallback to current path if facet source path is null

Created on 5 May 2022, over 2 years ago
Updated 27 July 2023, over 1 year ago

Problem/Motivation

Under certain conditions I managed to have the facet source path return null, what this meant was that the "all" option was attached to the front page instead of the current page.

Steps to reproduce

I cannot promise these are the steps, but this is the steps that I am reproducing the issue with.

  1. Enable facets, search_api & search_api_glossary
  2. Create search api index of content with glossary configured
  3. Use patches found on the following issue ✨ Create views plugins to render facets and summaries in filters and areas Fixed to apply patch for facets in views
  4. Create a glossary facet
  5. Create a view and use the glossary as an exposed facet
  6. Make sure show all is enabled

After these steps I found that clicking "all" would redirect me to home page.

Proposed resolution

Add a fallback to use the current page if facet source path is null.

πŸ› Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom 3li U.K. πŸ‡¬πŸ‡§

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024