XenForo How to properly use route filter wild cards?

  • Thread starter Thread starter electrogypsy
  • Start date Start date
E

electrogypsy

Guest
Hey there, I'm trying to figure out how to use wild cards in XF's route filters. The documentation doesn't really give a good example so I'm hoping some users can post some?

I'm toying around with wildcards to see if 'discourse style' urls are possible for threads. For example, changing:

mysite.com/threads/thread-title.1234

to

mysite.com/t/thread-title/1234

it seems like searching for:

threads/{name}.{name.digit}

and replacing with:

t/{name}/{name.digit}

might logically do the...

Read more

Continue reading...