title: Stop bootstrap tabs from resetting when page reloads
body: <p>I have bootstrap tabs that call a PHP function to paginate it, the problem is, if I'm in a tab other than the active tab, if I press a different page, it reloads the page and sets me back to the active tab.</p>
  
  <p>Example, I have tab a which is active by default, and tab b, which has 2 pages. If I click tab b, then press page 2, it reloads the page causing it to go back to tab a.</p>
  
  <p>How can I "save" the tab that was last selected, so when the page reloads it defaults to the tab that was selected before the reload?</p>
  
  <p>Edit: Here's the code for the tabs:</p>
  
  <p><a href="http://pastebin.com/rhrvFgYc" rel="nofollow">http://pastebin.com/rhrvFgYc</a></p>
  
  <p>And the pagination is done with the displayFeed() method, I used this tutorial:
  <a href="http://www.phpfreaks.com/tutorial/basic-pagination" rel="nofollow">http://www.phpfreaks.com/tutorial/basic-pagination</a></p>