My site uses
<base href="http://mysite.com/" />
And so my anchors for my tabs are rendered like this
<a href="/folder/page.html#one">Tab One</a>
<a href="/folder/page.html#two">Tab Two</a>
When initializing the tabs, an error is thrown:
Control.Tabs: #page.htmlone was not found on the page.
Changing line 79 of tabs.js from
link.key = link.getAttribute('href').replace(window.location.href.split('#')[0],'').split('/').last().replace(/#/,'');
to
link.key = link.getAttribute('href').replace(window.location.href.split('#')[0],'').split('#').last().replace(/#/,'');
Works for me. I'm not sure why the orig code wants to get the
filename (that last split). In fact, I think this may work too:
link.key = link.getAttribute('href').replace(window.location.href.split('#')[0],'').split('#').last();
Apologies in advance if this is not thorough enough.