diff --git a/lib/cartodb/controllers/map.js b/lib/cartodb/controllers/map.js index 11074234..9fd67710 100644 --- a/lib/cartodb/controllers/map.js +++ b/lib/cartodb/controllers/map.js @@ -242,7 +242,7 @@ function getTemplate ( const { template_id } = req.params; const { auth_token } = req.query; - const params = { dbuser, dbname, dbpassword, dbhost, dbport }; + const params = Object.assign({ dbuser, dbname, dbpassword, dbhost, dbport }, req.query); const mapConfigProvider = new NamedMapMapConfigProvider( templateMaps,