Multi word search queries return "no results"

Created on 27 October 2023, 8 months ago
Updated 31 October 2023, 8 months 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.69.0 2024