Answer the question
In order to leave comments, you need to log in
Tab activity lost when reloading the browser?
Hi people.
I can not google a small problem, the fact is that there are tabs 1-2-3-4-5. Let's say I'm in the third tab and when I refresh the page or click on the submit, then after the update I'm on the first tab. I also have a link that leads to 4 tabs example: site/user/cabinet, I thought to substitute site/user/cabinet/#w1-tab2 in this way, it didn’t work, everything exactly hits 1 tab, I get a tab in a tab. Oh yeah I'm using bootstrap 3
Answer the question
In order to leave comments, you need to log in
This is natural behavior, because data about which of the tabs is active is not saved anywhere. To solve the problem, accordingly, it is necessary to save information about the active tab somewhere and restore it after reloading the page, for example, in localStorage, here is one example of how this can be done, and it’s better to google on this issue like this
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question