Multi word search queries return "no results"

Created on 27 October 2023, about 1 year ago
Updated 31 October 2023, about 1 year ago

Problem/Motivation

After going from 1.3.2 to 1.3.4, typing in a search with a "space" in between words breaks the search.

I'm curious if it has to do with the lack of quotes in components/widget.js file... the new code in 1.3.4 is this...

const url = new URL(this.url, window.location.origin);
url.searchParams.append("q", encodeURIComponent(input));
fetch(url.toString(), {

Should it be this instead...

const url = new URL(this.url, window.location.origin);
url.searchParams.append("q", encodeURIComponent(`"${input}"`));
fetch(url.toString(), {

I haven't had a chance to test if this is actually the culprit or not.

🐛 Bug report
Status

Fixed

Version

1.3

Component

Code

Created by

🇺🇸United States chucksimply

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

Comments & Activities

Production build 0.71.5 2024