Skip to content

Commit

Permalink
Merge pull request #15809 from jansule/remove-second-slash
Browse files Browse the repository at this point in the history
refactor: remove unneeded '/' for URL construction
  • Loading branch information
ahocevar committed May 8, 2024
2 parents 13f9ca2 + 2621e7f commit b6e8c95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ol/source/ogcTileUtil.js
Expand Up @@ -111,7 +111,7 @@ export function appendCollectionsQueryParam(tileUrlTemplate, collections) {
}

// making sure we can always construct a URL instance.
const url = new URL(tileUrlTemplate, 'file://');
const url = new URL(tileUrlTemplate, 'file:/');

if (url.pathname.split('/').includes('collections')) {
logError(
Expand Down

0 comments on commit b6e8c95

Please sign in to comment.