diff --git a/src/dom/uid.js b/src/dom/uid.js index 4f8c14f8..639bc612 100644 --- a/src/dom/uid.js +++ b/src/dom/uid.js @@ -6,7 +6,7 @@ export default function(name) { function Id(id) { this.id = id; - this.href = window.location.href + "#" + id; + this.href = new URL(`#${id}`, location) + ""; } Id.prototype.toString = function() {