• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Update browser history when using tabbed content

sinucello

Well-known member
#1
Hi,
on the profile page (and maybe also on other pages I`m not aware of) tabs are used to structure the content:
If I take the following click path: "Resources" tab -> Resource link -> Resource page -> Browser back button

The result will be that I`m on the the profile page again but I lose the context and so I`m looking at the first tab "Profile Posts" again. This is confusing and not user friendly.

jQuery offers a solution that updates the browser history with the anchor link for the tab. So if you return to the profile page, it will keep the tab open that was active when you left the page:
https://xenforo.com/community/members/liam-w.48646/#resources

Here`s a demo on how to do this:
http://www.queness.com/resources/html/jquery-tabs-interface/

Please consider this for the further development of xenForo.

thank you - all the best,
Sacha