summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-04-25 09:16:56 +0100
committerPhil Hughes <me@iamphill.com>2018-04-25 09:16:56 +0100
commit0ad5fdeda5c231ab678a94a2009da4f440ed43be (patch)
tree24a6853f13fd34e4dfeb33d68a273c51447f77da /app
parent726237ba9855f76a79bbffe0abc316f72a950b3b (diff)
downloadgitlab-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.js2
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);