Skip to content

Users can see a Zoekt error in the UI even when Zoekt search isn't enabled

Summary

A URL parameter is not dropped correctly when users are using Elastic code search, causing users to receive a Zoekt error in the UI, even thought Zoekt isn't enabled.

Steps to reproduce

if I go to the GitLab UX project, then open the search modal and search for beta but in the GitLab.org group, the resulting URL is https://gitlab.com/search?group_id=9970&repository_ref=master&scope=blobs&search=beta and I see the below screen:

image.png

If I remove repository_ref=master from the URL and hit return, I see what I would expect to see, that exact code search is being used:

image.png

What is the current bug behavior?

URL parameter is not dropped correctly, causing users to receive a Zoekt error in the UI, even thought Zoekt isn't enabled.

What is the expected correct behavior?

Users should not see a Zoekt error if Zoekt isn't enabled.

Relevant logs and/or screenshots

See above

Possible fixes