Base path breaks facet autocomplete

Created on 21 July 2023, over 1 year ago

Problem/Motivation

We have a site with a non-empty base path, and facet autocomplete works when the base path is empty but not otherwise

Steps to reproduce

Configure a facet on a search API view for select2 with autocomplete. Set up the site so it is served on a base path, eg. https://example.com/mysite. Observe that autocomplete fails and there is an associated error reporting the absence of a matching route.

Proposed resolution

The base path isn't taken into account when processing the URL of the invoking page, and it needs to be. Proposed patch to follow,

🐛 Bug report
Status

Active

Version

1.15

Component

Facets integration

Created by

🇬🇧United Kingdom alfaguru

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

Comments & Activities

Production build 0.71.5 2024