mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Tabs: fixes #4033 as well for the case a base tag is being used
This commit is contained in:
parent
9581c73625
commit
48e551ee0c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user