From 966b6ba0a732f506acfeeacb5dbe56ca5cb0de90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Stra=C3=9Fburger?= Date: Mon, 5 Dec 2016 16:43:08 +0100 Subject: [PATCH] :construction_worker: making sure, that baseURL is always followed by a slash --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 2d0da7b..329a9b9 100644 --- a/src/utils.js +++ b/src/utils.js @@ -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) {