diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-15 15:11:13 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-15 15:11:13 +0300 |
commit | ae27cd3c8824d0d7815ad9ba550ad249f7e298a6 (patch) | |
tree | b926ecf47418ab28a6c9a70f2f20cfe14091ff58 /app/assets/javascripts/ide | |
parent | 33f96e8df089c2291010598c50ec6868ab8cb1ef (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/ide')
-rw-r--r-- | app/assets/javascripts/ide/services/terminals.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/ide/services/terminals.js b/app/assets/javascripts/ide/services/terminals.js index ea54733baa4..99121948196 100644 --- a/app/assets/javascripts/ide/services/terminals.js +++ b/app/assets/javascripts/ide/services/terminals.js @@ -1,6 +1,8 @@ import axios from '~/lib/utils/axios_utils'; +import { joinPaths } from '~/lib/utils/url_utility'; -export const baseUrl = (projectPath) => `/${projectPath}/ide_terminals`; +export const baseUrl = (projectPath) => + joinPaths(gon.relative_url_root || '', `/${projectPath}/ide_terminals`); export const checkConfig = (projectPath, branch) => axios.post(`${baseUrl(projectPath)}/check_config`, { |