This example will show how to set the active tab based on the #hash value passed to the url.
It's a little hard to test since it need a reload and by nature #hash url's don't reload the page.
Click the links below to simulate coming from another page.
Tab One Content
Tab Two Content
Tab Three Content
Tab Four Content
Tab Five Content