Search in all GitLab does not respect relative URL
Summary
Search in all GitLab (option in the search from the top of the page) does not respect relative URL.
Steps to reproduce, behavior and correct behavior
- Set GitLab instance to have relative URL (e.g. http://some_ip_address/gitlab).
- Open GitLab and start typing any search term in the search at the top of the page (e.g. "runner").
- Click on the option that shows up to search in all GitLab (i.e. in this case "runner" in all GitLab).
At this point 404 is given and URL is showing http://some_ip_address/search?search=some instead of search results and URL being http://some_ip_address/gitlab/search?search=some.