Make a default link click handler that prevents adding of '#' to URL bar