Before opening a link on click, check if default prevented.
Merge branch 'ticket455' into gh-pages