Your demo is combining AJAX-enabled tabs and a history-plugin.
It looks like the tab plugin is always loading the first tab and then loading a second tab if one is specified by the history.
The order of events is:
- Page loads
- First tab (aHW5jy) is requested via AJAX (1st GET)
- History plugin restores state from URL (sees:
#http://bit.ly/cKnMc2
in the URL, and then performs GET for cKnMc2)
- 2nd AJAX request completes, result is shown.
So, to summarize the issue, you need to determine which tab the URL is requesting prior to the Tabs plugin initializing the content for any tab. It should just grab tab #3 if that's specified, whereas currently it grabs tab #1 then tab #3.