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

Doesn't seem to work in a React application using HashRouter from react-router-dom #33

Open mchiocca opened 6 years ago

mchiocca commented 6 years ago

When I use HashRouter from react-router-dom in my React application, the calculation of the URL doesn't seem to correct. For example, If I'm on https://localhost/#/foo/bar and I click a tab on that page, I expect the URL to change to this, https://localhost/#/foo/bar#tab. However, the plugin changes the URL to something like https://localhost#tab so I've lost /#/foo/bar from the URL. Then, using the back and forward buttons to navigate won't work correctly.