diff --git a/leaflet.textpath.js b/leaflet.textpath.js index cd001d4..d13d9fd 100755 --- a/leaflet.textpath.js +++ b/leaflet.textpath.js @@ -98,7 +98,7 @@ var PolylineTextPath = { var dy = options.offset || this._path.getAttribute('stroke-width'); - textPath.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", '#'+id); + textPath.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", window.location.href + '#' + id); textNode.setAttribute('dy', dy); for (var attr in options.attributes) textNode.setAttribute(attr, options.attributes[attr]);