mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +03:00
See #832, further fix for dzitilesource guessing of tilesUrl, for iiipserver configurations like /iiipsrv?DeepZoom=/path/my.dzi
This commit is contained in:
parent
b9df7f3cde
commit
870bb2a99a
@ -140,7 +140,7 @@ $.extend( $.DziTileSource.prototype, $.TileSource.prototype, /** @lends OpenSead
|
|||||||
|
|
||||||
if (url && !options.tilesUrl) {
|
if (url && !options.tilesUrl) {
|
||||||
options.tilesUrl = url.replace(
|
options.tilesUrl = url.replace(
|
||||||
/([^\/]+?)(\.(dzi|xml|js))?\/?(\?.*)?$/, '$1_files/');
|
/([^\/]+?)(\.(dzi|xml|js))?(\?[^\/]*)?\/?$/, '$1_files/');
|
||||||
|
|
||||||
if (url.search(/\.(dzi|xml|js)\?/) != -1) {
|
if (url.search(/\.(dzi|xml|js)\?/) != -1) {
|
||||||
options.queryParams = url.match(/\?.*/);
|
options.queryParams = url.match(/\?.*/);
|
||||||
|
@ -32,7 +32,10 @@
|
|||||||
'relative link should stay the same');
|
'relative link should stay the same');
|
||||||
testImplicitTilesUrl(
|
testImplicitTilesUrl(
|
||||||
'/p/foo.dzi?a=1&b=2', '/p/foo_files/',
|
'/p/foo.dzi?a=1&b=2', '/p/foo_files/',
|
||||||
'querystring in dzi url should be ignored');
|
'querystring in dzi url should be ignored after slashes');
|
||||||
|
testImplicitTilesUrl(
|
||||||
|
'/iiipsrv?DeepZoom=/path/my.dzi', '/iiipsrv?DeepZoom=/path/mine_files/',
|
||||||
|
'querystring in dzi url should not be ignored before slashes');
|
||||||
});
|
});
|
||||||
|
|
||||||
}());
|
}());
|
||||||
|
Loading…
Reference in New Issue
Block a user