oleeskild / digitalgarden

257 stars 143 forks source link

Search bar does not return any results #264

Open MasssiveJuice08 opened 1 month ago

MasssiveJuice08 commented 1 month ago

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

oleeskild commented 4 weeks ago

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.

MasssiveJuice08 commented 3 weeks ago

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