diff --git a/lib/less/tree/url.js b/lib/less/tree/url.js index 62549ead..02d34855 100644 --- a/lib/less/tree/url.js +++ b/lib/less/tree/url.js @@ -2,10 +2,8 @@ tree.URL = function (val, paths) { // Add the base path if the URL is relative and we are in the browser - if (!/^(?:http:\/)?\//.test(val.value) && - paths.length > 0 && - typeof(window) !== 'undefined') { - val.value = [paths[0], val.value].join('/'); + if (!/^(?:http:\/)?\//.test(val.value) && paths.length > 0 && typeof(window) !== 'undefined') { + val.value = [paths[0], val.value].join('/').replace('//', '/'); } this.value = val; };