diff options
Diffstat (limited to 'app/assets/javascripts/ide/services')
-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`, { |