redirect(url, inNewTab) {
    if (!url) return;

    if (this.alwaysNewTab || inNewTab) window.open(url, "_blank").focus();
    else window.location.href = url;
  }
/*
   * Opens a URL either in current or new tab
   */
Opens a URL either in current or new tab
Opens a URL either in current or new tab
redirect(url, inNewTab) {
    if (!url) return;
    if (this.alwaysNewTab || inNewTab) window.open(url, "_blank").focus();
    else window.location.href = url;
  }
redirect ( url , inNewTab ) { if ( ! url ) return ; if ( this . alwaysNewTab || inNewTab ) window . open ( url , "_blank" ) . focus ( ) ; else window . location . href = url ; }
Opens a URL either in current or new tab
Opens a URL either in current or new tab