diff --git a/src/dzitilesource.js b/src/dzitilesource.js index daed278e..5ef2585e 100644 --- a/src/dzitilesource.js +++ b/src/dzitilesource.js @@ -138,7 +138,12 @@ $.extend( $.DziTileSource.prototype, $.TileSource.prototype, /** @lends OpenSead if (url && !options.tilesUrl) { options.tilesUrl = url.replace(/([^\/]+)\.(dzi|xml|js)(\?.*|$)/, '$1_files/'); - options.queryParams = url.match(/\?.*/); + + if (url.search(/\.(dzi|xml|js)\?/) != -1) { + options.queryParams = url.match(/\?.*/); + }else{ + options.queryParams = ''; + } } return options;