Bug 20970: Add preventDefault to avoid trailing # to be added to the url