Instead of rewriting the href, prevent default behavior

Without this change, the href is changed after the first click and external links cannot be opened a second time.