I have jQuery ui tabs and I would like to be able to open a tab from a link (inside or outside the current tab or page)
It does work if the link is in an external page and looks like this:
http://server.com/view.php?id=130#section-2
This correctly open the tab "section-2"
The problem is when the link is in the same page, it does not refresh the page (as it just add the #section-2) so the tab is not selected.
I saw some answers example using ids in the tag and binding the click in jQuery, but I cannot use this because some of my links are computed and I don't know if they are pointing to inside or outside.