title: Event Handler for Launcpad Header Back Button
body: <p>I need to overwrite the event of Launchpad Header Back Button in certain cases. I tried lots of things like:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>try {
   sap.ui.getCore().byId("backBtn").attachPress(this, function(oEvent)  {
    oEvent.preventDefault();
   }.bind(this));
  } catch (err) {
   console.log(err);
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>or</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$('body').mousedown(function(e) {
  
  
    var oTarget = $(e.target);
  
  
    console.log(oTarget[0].offsetParent.id);
    console.log(oTarget[0]);
    if (oTarget[0].offsetParent.id === "backBtn") {
      console.log("prevent");
      e.preventDefault();
      e.stopPropagation();
      return false;
    }
  
  }.bind(this));</code></pre>
  </div>
  </div>
  </p>
  
  <p>In these codes I just tried to prevent the navi, getting back. Didn't work. I want to navigate to certain views in certain cases. For example:</p>
  
  <p>if user is in view 3 -> click Launchpad Back Button -> navigate to view 1 (not the previous navigation target)</p>
  
  <p>But I couldn't stop navigation mechanism to go back to previous target.</p>
  
  <p>I'd appreciate any help or ideas.</p>