message: Fix for hover link redirecting
diff: @@ -74,6 +74,7 @@ export const EditYAML = connect(stateToProps)(
  stale: false,
  sampleObj: props.sampleObj,
  fileUpload: props.fileUpload,
  + isHovering: false
  };
  this.monacoRef = React.createRef();
  this.resize = () => {
  @@ -89,6 +90,7 @@ export const EditYAML = connect(stateToProps)(
  this.loadSampleYaml_ = this.loadSampleYaml_.bind(this);
  this.downloadSampleYaml_ = this.downloadSampleYaml_.bind(this);
  this.editorDidMount = this.editorDidMount.bind(this);
  + this.editorDidHover = this.editorDidHover.bind(this);
  if (this.props.error) {
  this.handleError(this.props.error);
  @@ -113,6 +115,7 @@ export const EditYAML = connect(stateToProps)(
  if (!_.isEqual(prevState, this.state)) {
  this.resize();
  }
  + this.editorDidHover();
  }
  componentDidMount() {
  @@ -128,6 +131,21 @@ export const EditYAML = connect(stateToProps)(
  window.removeEventListener('sidebar_toggle', this.resize);
  }
  + editorDidHover() {
  + if (this.state.isHovering) {
  + for (const ele of document.getElementsByClassName('monaco-editor-hover')) {
  + ele.onclick = (event) => event.preventDefault();
  + ele.onauxclick = (event) => {
  + window.open(event.target.getAttribute('data-href'), '_blank');
  + event.preventDefault();
  + }
  + }
  + this.setState({
  + isHovering: false
  + })
  + }
  + }
  +
  componentWillReceiveProps(nextProps) {
  if (nextProps.isOver) {
  return;
  @@ -460,11 +478,17 @@ export const EditYAML = connect(stateToProps)(
  }
  registerYAMLHover(languageID, monaco, m2p, p2m, createDocument, yamlService) {
  + const that = this;
  monaco.languages.registerHoverProvider(languageID, {
  provideHover(model, position) {
  const document = createDocument(model);
  return yamlService.doHover(document, m2p.asPosition(position.lineNumber, position.column)).then((hover) => {
  return p2m.asHover(hover);
  + }).then(e => {
  + that.setState({
  + isHovering: true
  + })
  + return e;
  });
  },
  });
  