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

is there a reason why Xenforo Tabs in addons don't have real URLs ?

Discussion in 'General XenForo Discussion and Feedback' started by Digital Doctor, Mar 7, 2013.

  1. Digital Doctor

    Digital Doctor Well-Known Member

    if I click the Image Gallery Tab
    ... the image gallery tab doesn't have a real URL.
    So I can't direct people to that tab specifically.

    I've seen this in all? Xenforo tab addons ?

    Is there a reason ?

    Other than not being able to direct someone to that specific tab ... are there other issues.

    BTW, bobster65's showcase addon is killer :)
    (he should make a lite gallery).
    Shelley likes this.
  2. ManOnDaMoon

    ManOnDaMoon Well-Known Member

    Their contents are displayed/loaded via javascript/ajax, so there is technically no need for a direct URL. Eventually, I'd also prefer a URL too.
  3. MOZ

    MOZ Well-Known Member

    The page is loaded in one request, making it faster to switch between tabs and reducing load on server as only one request is made as opposed to multiple requests.
    Digital Doctor likes this.
  4. Chris D

    Chris D XenForo Developer Staff Member

    It's the same with the member profile tabs, to be fair.

    Would also be useful to have some way of directly linking that.

    IIRC there's some code in xenforo.js that indicates this was going to be implemented in the future.
    ManOnDaMoon and Fuhrmann like this.
  5. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

    It's mainly because of the 'base' tag e.g
    <base href="http://xenforo.com/community/" />
    For the showcase add-on... it can be fixed by adding:
    before the hash(s) which bobster will hopefully add ;)
  6. Sheldon

    Sheldon Well-Known Member

    I hope it isn't added for Showcase. If someone is interested, it's not hard to click the tab.
  7. Bob

    Bob Well-Known Member

    You CAN do direct links, but the link that DD posted was missing the ITEM route (http://www.xfshowcase.com/showcase/clip-the-apex.41/#timages) This link will actually take you directly to the showcase item and open the Gallery Tab. When viewing the ITEM, the tab links are different than they are when viewing the discussion. When in the discussion thread, the tab links have the route appened to them.. they don't need that when you are directly view the item.
    Chris D likes this.
  8. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

  9. Bob

    Bob Well-Known Member

    Chris D likes this.
  10. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

    yes, I have seen that... they are added in the thread view because you have something like:
    href="{xen:link showcase, $item}#timages"
    so the route and action is being added... but for the item view page it's something like:
    and because of the 'base' tag (like I said earlier)... the browser sees the hash as '{the-base-url}#timages' instead of '{the-base-url}/showcase/item.id/#timages'...
  11. Digital Doctor

    Digital Doctor Well-Known Member

    Good example. That is the best example.

    Is there something that could be added to 1.2 to allow easier direct linking ?

Share This Page