Gitlab Commit History search displays Javascript code when no Results are found.
Summary
When searching for certain values in commit history view, there is Javascript printed out on the the screen.
Steps to reproduce
- Navigate to https://gitlab.com/gitlab-org/gitlab/-/commits/master
- Search for
ex-ternalorAI-9999 - Observe that Javascript is displayed under the "Edit your search and try again." message.
Example URLs:
- https://gitlab.com/gitlab-org/gitlab/-/commits/master?search=ex-ternal
- https://gitlab.com/gitlab-org/gitlab/-/commits/master?search=AI-9999
Example Project
https://gitlab.com/gitlab-org/gitlab
What is the current bug behavior?
Javascript code is rendered as plain text on the page when searching for specific terms in the commit history view that return no results. The JavaScript appears below the "Edit your search and try again." message.
What is the expected correct behavior?
No JavaScript code should be visible to users. The search should either show no results cleanly without any code being displayed, or the JavaScript should execute properly in the background without being rendered as text content.
Relevant logs and/or screenshots
Edited by 🤖 GitLab Bot 🤖
