For me, this exact problem is related to the base tag and cannot be resolved using the click event referenced by Chris's idea. This can also happen if your URLs are being rewritten to have a complete absolute URL, for example. using the caching tool or .htaccess
So, if your tabs were rewritten as <a href="http://example.com/page/#tab1">tabname</a>
Then the solution is to remove the full URL before initializing the tabs. The following (extended so that it is simple) removes everything that leads to #
jQuery("#mytabs ul li a").each(function () { var current = jQuery(this).attr("href"); var n = current.indexOf("#"); jQuery(this).attr("href", current.substr(n)); }); jQuery("#mytabs").tabs( .. )
source share