title: How to use `$window.history.back()` to go back in Angular.js?
body: <p>I am using <code>$window.history.back()</code> to go 1 step back in my Ionic + Angular app.</p>
  
  <p>It has an issue: if my URL is in proper form (<code>http://localhost:8100/jobs.html</code>) then it is working properly, but if my URL is in this form (<code>http://localhost:8100/jobs.html#/category</code>) then it is not working and does not go back.</p>
  
  <p>Here is my function:</p>
  
  <pre><code>$scope.back3=function() {    
      $window.history.back(); 
  }
  </code></pre>
  
  <p>I will be thankful for any help.</p>