intercept local link clicks on a page