Skip to content
代码片段 群组 项目
提交 c4c246d1 编辑于 作者: Harsh Chouraria's avatar Harsh Chouraria
浏览文件

Add prefix to autocomplete path

After the change by
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/34295
the global /autocomplete path no longer works
and the /-/ (hyphen) prefix is required to avoid a 404

Fixes https://gitlab.com/gitlab-org/gitlab/-/issues/332556

Changelog: fixed
上级 36278d57
No related branches found
No related tags found
无相关合并请求
...@@ -204,7 +204,7 @@ export default class AvailableDropdownMappings { ...@@ -204,7 +204,7 @@ export default class AvailableDropdownMappings {
getMergeRequestTargetBranchesEndpoint() { getMergeRequestTargetBranchesEndpoint() {
const endpoint = `${ const endpoint = `${
gon.relative_url_root || '' gon.relative_url_root || ''
}/autocomplete/merge_request_target_branches.json`; }/-/autocomplete/merge_request_target_branches.json`;
const params = { const params = {
group_id: this.getGroupId(), group_id: this.getGroupId(),
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册