diff --git a/src/common/Policy.js b/src/common/Policy.js index 8a8111c..dc20aac 100644 --- a/src/common/Policy.js +++ b/src/common/Policy.js @@ -71,7 +71,7 @@ var {Permissions, Policy, Sites} = (() => { let path = url.pathname; siteKey = url.origin; if (siteKey === "null") { - siteKey = site; + ([siteKey] = site.split(/[?#]/)); // drop any search / hash segment } else if (path !== '/') { siteKey += path; }