I'm working on a Joomla component and need help in redirecting to specific tab.
I have created multiple tabs in my view using bootstrap (eg: JHtml::_('bootstrap.startTabSet', 'myTab', array('active' => 'tab1')). I can set the default active tab by passing 'active' => 'tabname'. However, I want to control this dynamically after any actions performed on the view in any specific tab.
For example, if the user clicks the save button while in Tab3, I want to return to Tab3 after the save action completes. Currently it goes back to tab1 as I set that as default.
Can anyone help me how to identify the current tab and redirect to the same tab after any action by the user?