Skip to content
Permalink
Browse files

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

  • Loading branch information...
Klaus Hartl
Klaus Hartl committed Feb 25, 2009
1 parent 9581c73 commit 48e551ee0cec83b040b2b5abbc1c99b70e15e126
Showing with 3 additions and 1 deletion.
  1. +3 −1 ui/ui.tabs.js
@@ -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;
}

0 comments on commit 48e551e

Please sign in to comment.
You can’t perform that action at this time.