Open ghost opened 9 years ago
Seeing the same thing here. Not sure what it is about SVG links that breaks this:
Added PR to fix this.
+1
I merged this PR in iron-location
, but someone needs to bump and publish a new version of the package (I don't have permission for that).
Is there a workaround to fix this on our own (by modifying the path) until someone gets around to publish the change?
I use the following template in svg that produce the text "Click to get info" with an hypertext link on it :
<template name="test"> <svg version="1.1" width="300" height="200" xmlns="http://www.w3.org/2000/svg"> <a xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/pers/infos/pCuiHjRkMGGYbqRNw"> <text x="100" y="100" fill="red">Click to get info</text> </a> </svg> </template>
When I click on the result, Iron router doesn't route to "/pers/infos/pCuiHjRkMGGYbqRNw" : the console shows the following error : "TypeError: path.replace is not a function (iron_location.js:310:11).
Than for your help :) !