Commit e9814aae authored by Clement Ho's avatar Clement Ho

Merge branch 'sh-fix-search-relative-urls' into 'master'

Fix search "all in GitLab" not working with relative URLs

Closes #53259

See merge request gitlab-org/gitlab-ce!22644
parents e2aad4a5 01dbf706
......@@ -226,7 +226,7 @@ export class SearchAutocomplete {
icon,
text: term,
template: s__('SearchAutocomplete|in all GitLab'),
url: `/search?search=${term}`,
url: `${gon.relative_url_root}/search?search=${term}`,
});
if (template) {
......@@ -234,7 +234,7 @@ export class SearchAutocomplete {
icon,
text: term,
template,
url: `/search?search=${term}&project_id=${this.projectInputEl.val()}&group_id=${this.groupInputEl.val()}`,
url: `${gon.relative_url_root}/search?search=${term}&project_id=${this.projectInputEl.val()}&group_id=${this.groupInputEl.val()}`,
});
}
}
......
---
title: Fix search "all in GitLab" not working with relative URLs
merge_request: 22644
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment