title: How to force reload if back button is pressed in jquery-mobile
body: <p>I want to force a page reload of my main page if the user clicks on the back button of my detail page. The strange thing is, that the following event is exactly fired as expected, but now every pages is reloaded after the back button is pressed.</p>
  
  <pre><code> $(document).off("pagehide").on("pagehide", "div[id=main-page]", function(event, ui) {
    var nextPage = ui.nextPage.attr('id');
    if (nextPage === "detail-page") {
       $(event.target).remove();
    }
   });
  </code></pre>
  
  <p>BTW: the following code is included in my main page</p>
  
  <p>Regards
    Roger</p>