Global Search result keyword highlighting lost

Summary

When searching with Global Search, I noticed that the highlighting of the keyword got lost in the search result page.

Steps to reproduce

  • Go to a page in one of the project on GitLab.com, for example #329234 (closed)
  • Search a term in the top navbar
  • In the search result page, I can't see the highlighting of the search term that I used

What is the current bug behavior?

No search term/keyword highlighting in the search result page

What is the expected correct behavior?

The search term/keyword should be highlighted in the search result page

Relevant logs and/or screenshots

I also noticed there were errors in the browser console. Please see attached screenshot

no_highlighting

I also found another issue which might be related, #386437 (closed)

Possible fixes