Tabs: fixes #4033 as well for the case a base tag is being used

This commit is contained in:
Klaus Hartl 2009-02-25 20:16:27 +00:00
parent 9581c73625
commit 48e551ee0c

View File

@ -87,7 +87,9 @@ $.widget("ui.tabs", {
// Same consideration applies for an added tab with a fragment identifier
// since a[href=#fragment-identifier] does unexpectedly not match.
// Thus normalize href attribute...
if (href.split('#')[0] == location.toString().split('#')[0]) {
if (href.split('#')[0] == location.toString().split('#')[0] ||
$('base').length && href.split('#')[0] == $('base')[0].href) {
href = a.hash;
a.href = href;
}