• 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

DennisSkov

Active member
#1
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?
 

Chris D

XenForo developer
Staff member
#3
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 :)
 

DennisSkov

Active member
#4
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!
 

Mike

XenForo developer
Staff member
#5
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.