aidanlister / jquery-stickytabs

Provides persistant state (back and forward button support) for Bootstrap tabs
http://aidanlister.com/2014/03/persisting-the-tab-state-in-bootstrap/
MIT License
60 stars 33 forks source link

$_GET variable in URL. #10

Closed OfficialBAMM closed 9 years ago

OfficialBAMM commented 9 years ago

I have the following URL: index.php?p=actie, which does not support your current plugin. It changes the p=actie to the hash tag. I tried to adapt the code, but with no succes. Any idea's? Currently I'm just using this:

    $('.nav-tabs-sticky').stickyTabs({
    getHashCallback: function(hash, btn) { return '?p=actie#' + hash }
});

Removed the hashtag in your source, it works fine! But maybe something to look at :).

OfficialBAMM