From bd13a847a73b62e3235cbdc68dd0a85e78d5d5cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A1ssio=20Zen?= Date: Wed, 18 Jan 2017 18:26:01 -0200 Subject: [PATCH] bugfix in path. Closes #219 --- src/valueObjects/AssetProxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/valueObjects/AssetProxy.js b/src/valueObjects/AssetProxy.js index e6399a94..e88b2c1b 100644 --- a/src/valueObjects/AssetProxy.js +++ b/src/valueObjects/AssetProxy.js @@ -14,7 +14,7 @@ export default function AssetProxy(value, fileObj, uploaded = false) { this.fileObj = fileObj; this.uploaded = uploaded; this.sha = null; - this.path = config.media_folder && !uploaded ? `${ config.get('media_folder') }/${ value }` : value; + this.path = config.get('media_folder') && !uploaded ? resolvePath(value, config.get('media_folder')) : value; this.public_path = !uploaded ? resolvePath(value, config.get('public_folder')) : value; }