From 48e551ee0cec83b040b2b5abbc1c99b70e15e126 Mon Sep 17 00:00:00 2001 From: Klaus Hartl Date: Wed, 25 Feb 2009 20:16:27 +0000 Subject: [PATCH] Tabs: fixes #4033 as well for the case a base tag is being used --- ui/ui.tabs.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/ui.tabs.js b/ui/ui.tabs.js index e50ab29be..191ccbb93 100644 --- a/ui/ui.tabs.js +++ b/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; }