Fixes: U4-3269 When a document doesn't have a link and instead just displays a message (because it isn't published), the UI shouldn't render an achor as a link - and makes the preventDefault directive to support conditional logic.