Checks if the default is not already prevented in the link click event before calling navigate.