`undefined` as a search term is getting lost and not highlighted in the search results

  1. Getting lost:
    If you search for 'console' is undefined here in the forum you will be directed to a search result page of 'console' is: Search results for '"'console' is undefined"' - Discourse Meta

  2. Not getting highlighted:
    Even if the search term does appear correctly in the search field (I don’t understand when it gets lost and when it works) the “undefined” string will not be highlighted in the search results: Search results for '"Error: Cannot read property 'name' of undefined"' - Ionic Forum

Edit: The “not getting highlighted” thing appears to be a bug when you manually search for it again after opening the URL, then the search term appears correctly in the search box, but really is still broken. 2) might be solved when 1) is solved then.

2 Likes

What do you think @sam?

Yeah there is a bug here, added to my list

1 Like

Fixed per:

https://github.com/discourse/discourse/commit/cb14da4d90af2a397e0eca9393cfe1c24f43cd61

5 Likes