diff --git a/public/src/client/account/edit.js b/public/src/client/account/edit.js index 13b84e3023..02c1e57200 100644 --- a/public/src/client/account/edit.js +++ b/public/src/client/account/edit.js @@ -188,7 +188,7 @@ define('forum/account/edit', ['forum/account/header', 'translator', 'components' function handleImageUpload(modal) { function onUploadComplete(urlOnServer) { - urlOnServer = urlOnServer + '?' + Date.now(); + urlOnServer = config.relative_path + urlOnServer + '?' + Date.now(); updateHeader(urlOnServer); diff --git a/src/user/picture.js b/src/user/picture.js index 13288774b2..a4dee130fe 100644 --- a/src/user/picture.js +++ b/src/user/picture.js @@ -223,7 +223,7 @@ module.exports = function (User) { }, function (upload, next) { next(null, { - url: nconf.get('relative_path') + upload.url, + url: upload.url, path: upload.path, name: image.name, });