Issue Summary
There’s a bit of unexpected behavior with the search functionality if you type “[” (left bracket) into the search functionality, and then any other letter or number. Once you type “[” and then any letter or number, it locks you out of the search function until you reload the page or visit a different page.
Steps to Reproduce
-
Head over to my site at nathanbrown.ghost.io. I use Google Chrome – Version 111.0.5563.64 (Official Build) (arm64) – which appears to be the latest version. I also use a Macbook Air with an M1 chip. My site is hosted with Ghost (Pro) on version 5.38.0.
-
Press the search button (top right, next to the ‘Sign In’ button).
-
Type [ and then any number or letter (eg. a, e, 1, 5).
-
Here’s what happens to me: it kicks me out from the search functionality. If I try to click on the search button again, nothing happens. If I reload the page, the search button begins to work again. (Also, if I type a[ or 1[, once I type the left bracket, it kicks me out from the search functionality and the same things happen.)
Other Information
How did I discover this issue? nathanbrown.ghost.io is my personal blog, and I use the format ‘[#X]’ to number my articles – that’s why I first typed [ into the search functionality.
Interestingly, the right bracket (if you type ] instead of [) doesn’t seem to cause any problems. Also interestingly, I can type other characters (that aren’t letters or numbers, like /, :, ", ',) into the search functionality after I type the left bracket, and it doesn’t crash the search functionality.
So yeah
I would appreciate if you could test out this issue on your own computer – it only takes like 10 seconds. Let me know if there’s any other information that y’all need.