"Your search term is too short" message when no search term is entered at all

This might be considered a bit confusing:

I have not entered any text yet, but it already says that my search term is too short (while there is no search term at all).

Maybe for zero-length input we should say something different, e.g.:

Enter at least {n} chars to start the search

1 Like

You can only get here by entering text and then deleting it, so I don’t consider that worth spending time on at the moment.

2 Likes

Fine for someone to submit a PR for enter at least {n} chars to search. Or something along those lines.

2 Likes

I see that state as soon as I press the / key.

5 Likes

PR submitted

https://github.com/discourse/discourse/pull/4415

7 Likes

Anyone retry my PR in travis. It will pass now. Before it failed because of master branch’s build failure.