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

Appending of forum ID inconsistency?

Discussion in 'XenForo Pre-Sales Questions' started by Shamil, Aug 14, 2010.

  1. Shamil

    Shamil Well-Known Member

    Why is it that the forum ID is not appended to the URL of the Announcement and Have you seen..? forums?
  2. Erik

    Erik Well-Known Member

    Interesting, nice catch. :)
  3. Brandon_R

    Brandon_R Guest

    Nice catch, yeah why not?
  4. Shamil

    Shamil Well-Known Member

    Appending a number to it makes the link invalid as well :eek:
  5. Criss

    Criss New Member

    Maybe they were created when the SEO was still in it's infancy?
  6. Erik

    Erik Well-Known Member

    That was my first guess, but that doesn't really make sense as I doubt the URL's are 'saved' anywhere - i.e. if they update the SEO code the URL's should update as well. I would think. :)
  7. Shamil

    Shamil Well-Known Member

    Weird. I wonder why appending an appropriate number invalidates the URL?
  8. Erik

    Erik Well-Known Member

  9. Shamil

    Shamil Well-Known Member

  10. James

    James Well-Known Member

    Perhaps it's an admincp feature to not require IDs for certain forums... that'd be a nice idea :p
  11. Onimua

    Onimua Well-Known Member

    True, but that would break if you had two forums with the same name wouldn't it?
  12. Erik

    Erik Well-Known Member

    Yeah, which is why the ID number should be appended and it's why an ID number is appended to all threads. :)

    If anyone's wondering when you would ever have multiple forums with the same name, imagine this:
    Windows Support
         - OS Support
         - Software Support
         - Other Support
    Mac Support
         - OS Support
         - Software Support
         - Other Support
    You get the idea. :)
  13. Disjunto

    Disjunto Well-Known Member

    Interesting.... something special about those forums?
  14. Mike

    Mike XenForo Developer Staff Member

    Ding ding ding! :)

    I actually hinted at this in the example page:
    You are given the choice to enter a name for the forum to be accessed by (the "slug", if you're familiar with WP). The advantage is that you don't have an ID. The disadvantage is that you basically can't change this without breaking existing links to it.

    It's specified on a per forum basis, and yes it has to be unique. The ID based version will still work.
    Brandon_R, feldon30, Onimua and 2 others like this.
  15. Floris

    Floris Guest

    The disadvantage is less compared to the advantage of being able to make:

  16. Brogan

    Brogan XenForo Moderator Staff Member

    Can you explain why it's an advantage to not have an ID for certain forums/pages?

    Is it just to make the url more closely match the forum or page name?
  17. James

    James Well-Known Member

    As Floris said:

    It allows for a more user-friendly URL.

    So we can change the URL of non-ID categories? I just hope if I ever have to do this, there is some way to redirect the old link to the new link.
  18. Enigma

    Enigma Well-Known Member

    Cleaner/shorter/more readable URLs. Wikipedia pages don't have IDs in the URL, for example.
  19. Shamil

    Shamil Well-Known Member

    However, you can't have articles with the same name. The article name becomes much more specific.
  20. Erik

    Erik Well-Known Member

    You could just add a redirect rule above all the other standard stuff in .htaccess. Should work fine. :)

    And yes, I am definitely liking this feature. :)

Share This Page