+ // Most of our handling here deals with finding a valid title for the search term,
+ // but almost anything starting with '#' is "valid" and points to Main_Page#searchterm.
+ // Rather than doing something completely wrong, do nothing.
+ if ( $searchterm === '' || $searchterm[0] === '#' ) {
+ return null;
+ }
+