MyBB Community Forums

Full Version: admin redirect to specific tab in a div based tab setup
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a plugin that creates pages in the ACP. I use the typical ACP tab setup to create multiple tabs on the page (via <div> setup that is normal to the ACP)

When I perform an action and the page does the admin_redirect ti works fine if I do not include the #tab_NAME at the end. If i include the #tab_NAME anchor at the end , the page does not load at all.

I assume that the anchor is trying to be loaded by the browser before the page is loaded the <div> based tabs are generated?

Its not a huge issue, but I'd like to go back to the same tab I was working on after a save.
I don't know if it'd work but could you not put a javascript redirect at the bottom of the page to the appropriate tab?
i'd rather not have to do that. thanks for the suggestion though