1. 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

Discussion in 'XenForo Suggestions' started by sinucello, Mar 6, 2015.

  1. sinucello

    sinucello Well-Known Member

    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:

    Here`s a demo on how to do this:

    Please consider this for the further development of xenForo.

    thank you - all the best,
    DivokyMuz, Gothi, netrix and 11 others like this.
  2. rafass

    rafass Well-Known Member

    sinucello likes this.

Share This Page