iron-meteor / iron-router

A client and server side router designed specifically for Meteor.
MIT License
1.98k stars 412 forks source link

Hypertext link (XLINK) in SVG templates don't work #1399

Open ghost opened 9 years ago

ghost commented 9 years ago

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"&gt; <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 :) !

mizzao commented 9 years ago

Seeing the same thing here. Not sure what it is about SVG links that breaks this:

image

mizzao commented 9 years ago

Added PR to fix this.

fvpDev commented 8 years ago

+1

mizzao commented 8 years ago

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).

cosmin-novac commented 8 years ago

Is there a workaround to fix this on our own (by modifying the path) until someone gets around to publish the change?