Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search bar does not return any results #264

Open
MasssiveJuice08 opened this issue May 21, 2024 · 2 comments
Open

Search bar does not return any results #264

MasssiveJuice08 opened this issue May 21, 2024 · 2 comments

Comments

@MasssiveJuice08
Copy link

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
Copy link
Owner

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
Copy link
Author

MasssiveJuice08 commented Jun 11, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants