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

XF 1.3 Router Filters - no digits in member profile url

Discussion in 'XenForo Questions and Support' started by DennisSkov, Sep 8, 2014.

  1. DennisSkov

    DennisSkov Active Member

    Since two members can't have the same username, I want to leave out the digit in the url (fx /members/user.1/) - I want it to be /members/user/

    Is there anyway that is possible?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. Chris D

    Chris D XenForo Developer Staff Member

    No, it's not possible.

    The number is the user_id and it is the key piece of information required to keep the URL.

    Technically you could achieve something with Route Filters but it would be very much a manual process, e.g. if it was just one account you could do this:

    upload_2014-9-8_16-37-36.png

    But, I'm sure you wouldn't want to do that manually for all your users :)
     
  4. DennisSkov

    DennisSkov Active Member

    Dang it. I would really love if XenForo didn't use IDs.
    Would this ever be a feature?

    If there would be two threads with the same name, this could be how XenForo would handle it:
    First thread name: My Awesome Thread
    First thread url: /threads/my-awesome-thread/

    Second thread name: My Awesome Thread
    Second thread url: /threads/my-awesome-thread.2/ - /threads/my-awesome-thread2/ or anything like that.

    Thanks for your answers!
     
  5. Mike

    Mike XenForo Developer Staff Member

    I should also note that just because they don't have the same user name doesn't mean that they won't have the same URL. "Mike" and "Mike!!!!" would both get URL "slugs" of "mike".

    Plus it totally falls over with user renames, so it's unlikely to happen.
     
    DennisSkov likes this.
  6. DennisSkov

    DennisSkov Active Member

    Oh, I see. I did not think of this...
     

Share This Page