YahooArchive / fluxible-router

MOVED TO FLUXIBLE REPO
104 stars 26 forks source link

Detect automatically when to follow a link #44

Closed lo1tuma closed 8 years ago

lo1tuma commented 9 years ago

It would be a nice addition to NavLink if it would be possible to detect automatically if the link should be followed or if the the navigateAction should be executed.

One way to do this, would be to check if the current href matches any defined route, if not the link should be followed.

anotherthomas commented 9 years ago

One usecase (which we actually have) would be that you render links based on data from a CMS. In the code we cannot be sure whether the content is a route within the site or to external content.

mridgway commented 9 years ago

This sounds reasonable to me. :+1: