digitalgarden icon indicating copy to clipboard operation
digitalgarden copied to clipboard

Search bar does not return any results

Open MasssiveJuice08 opened this issue 1 year ago • 2 comments

My digital garden website: Morrowind Modding with MassiveJuice

The search bar does not return any results on Release 1.61.0. Tested in latest versions of Google Chrome and Microsoft Edge. No results are given whether searching for page title or tag.

Screenshot 2024-05-21 120308

MasssiveJuice08 avatar May 21 '24 00:05 MasssiveJuice08

I've addressed this in the discord, but reposting here for reference:

Looked into this, it's because of the note "N'Gasta Pasta - Home". It seems the code doesn't handle titles with the symbol ' in them 😅 I'll see if what I can do to fix it. In the meantime, would it be possible for you to try to delete that note, or remove the " ' ", and see if that fixes it?

Okay, that was just part of the problem. You found another edgecase: using html tags in the title, e.g. "" and "", also crashes it. I've yet to figure out why it can't handle it, I will need to look further into it. But try removing those as well and see if that helps.

TL;DR: Single apostrophes and html tags in note titles breaks the search.

oleeskild avatar Jun 11 '24 17:06 oleeskild

Fixed for me now by removing the apostrophes and HTML tags from note titles. You may optionally want to leave this issue open for tracking a fix for search being able to parse those

MasssiveJuice08 avatar Jun 11 '24 22:06 MasssiveJuice08