👷 making sure, that baseURL is always followed by a slash

This commit is contained in:
Michael Straßburger 2016-12-05 16:43:08 +01:00
parent 707d91681f
commit 966b6ba0a7

View file

@ -11,7 +11,7 @@ module.exports.getTileUrls = function(req, domains, path, format, baseURL) {
var query = (key && key.length > 0) ? ('?key=' + key) : '';
if (baseURL) {
return [baseURL + path + '/{z}/{x}/{y}.' + format + query]
return [baseURL + '/' + path + '/{z}/{x}/{y}.' + format + query]
}
if (domains) {