Checks if the default is not already prevented in the link click event

If we're preventing the default of a local link, we won't want to call navigate. 
This could be solved calling stopPropagation on the other handler, but then we'll potentially lose behaviour. (needed this when using a bootstrap dropdown, handling the click on the options which are a tags)