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
Post a Comment