I'm using bootstrap tabs on my page one of which contains comments, I've used a script to allow me to open the tab by adding #comments_tab to the URL which works fine but if i want to goto a specific comment within the tab is there a way to do it?
I can't seem to use two hash tags like #comments_tab#post-12345
If the tab is already open and i add #post-12345 it goes to the comment i just need a way to combine opening the tab and going to the comment.
This is the script for opening the tab
$(function(){
var hash = window.location.hash;
hash && $('ul.nav a[href="' + hash + '"]').tab('show');
});