diff options
author | Phil Hughes <me@iamphill.com> | 2018-04-25 09:16:56 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-04-25 09:16:56 +0100 |
commit | 0ad5fdeda5c231ab678a94a2009da4f440ed43be (patch) | |
tree | 24a6853f13fd34e4dfeb33d68a273c51447f77da /app | |
parent | 726237ba9855f76a79bbffe0abc316f72a950b3b (diff) | |
download | gitlab-ce-0ad5fdeda5c231ab678a94a2009da4f440ed43be.tar.gz |
fixed JS service request sending to wrong URL
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/ide/stores/actions/file.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/ide/stores/actions/file.js b/app/assets/javascripts/ide/stores/actions/file.js index d782e0a84d2..fcdb3b753b2 100644 --- a/app/assets/javascripts/ide/stores/actions/file.js +++ b/app/assets/javascripts/ide/stores/actions/file.js @@ -63,7 +63,7 @@ export const getFileData = ({ state, commit, dispatch }, { path, makeFileActive const file = state.entries[path]; commit(types.TOGGLE_LOADING, { entry: file }); return service - .getFileData(file.url) + .getFileData(`${gon.relative_url_root ? gon.relative_url_root : ''}${file.url}`) .then(res => { const pageTitle = decodeURI(normalizeHeaders(res.headers)['PAGE-TITLE']); setPageTitle(pageTitle); |