UI Tabs absolute path needed?

UI Tabs absolute path needed?

Hello,

I am currently working on a webshop and I am using JQuery UI tabs.

In version 1.8.6 i was only writing "#tab-1" in the href attribute and it was working perfectly.
After I updated to version 1.9.2 this is showing the startpage of my webshop. If I write the full path ( e.g. http://example.com/ProductDetail/aid_1234/TestArticle/#tab-1 ) it is working correctly.

My Problem is, that the URL can be slightly different and I don't know this on the ProductDetail page.

The question is: 
Is there a way to use it without the absolute path?

[moderator edited don’t use xxxxx domains]