XF 2.0 Removing ID from forum and resource urls in XF2

for XF1 there was quite a simple option to edit this

I think you're referring to Route Filters.

These cannot be used to remove the ID for all threads or resources - but they can be used to strip it for specific threads or resources.

You'd need to enter a filter for every specific thread or resource you'd like to change.
 
How are you going to handle this is two threads have the same name?


The ID can't be removed as it is the unique identifier and fundamental to identifying threads.
Ah ok, I suspected as much to be honest. What I was thinking would be using the name of the thread/node/resource for url identification, and then customising the system to add a number if a previous thread etc had a name which would lead to an identical url.

eg. https://newforum.com/threads/the-first-thread.1 => https://newforum.com/threads/the-first-thread || https://newforum.com/thread/the-first-thread1 if there was an existing thread with a clashing url. The identifier remains as "the-first-thread" or "the-first-thread1" etc

How close to impossible is achieving this without causing enough complication for it to be obviously not worth it?


I think you're referring to Route Filters.

These cannot be used to remove the ID for all threads or resources - but they can be used to strip it for specific threads or resources.

You'd need to enter a filter for every specific thread or resource you'd like to change.

Yep I think that's right, route filter. I'd seen something about 'url portion' in XF1 also though: https://xenforo.com/community/threads/remove-node-id-from-url.19530/
 
Top Bottom