javascript - Tell Iron Router not to intercept a link -


i'm moving quite large application iron router. on client side, unknown routes redirected /404. in addition, routes managed server side - example /static, displays static page via middleware. problem iron router intercepts link clicks - when click link /static, action prevented, browser not display server response address, , user redirected /404 instead.

how prevent such behavior? there way tell iron router not intercept link?

you can tell iron router links should hook css selector:

ironlocation.configure({     'linkselector' : 'a[href], a:not([skipir])' }); 

then have <a href=".." skipir>skip route</a>


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -