diff --git a/src/tracker/index.js b/src/tracker/index.js index c17a76e8df..9fa560e6dc 100644 --- a/src/tracker/index.js +++ b/src/tracker/index.js @@ -54,7 +54,7 @@ const parseURL = url => { try { // use location.origin as the base to handle cases where the url is a relative path - const { pathname, search, hash } = new URL(url, origin); + const { pathname, search, hash } = new URL(url, location.href); url = pathname + search + hash; } catch (e) { /* empty */