electrogypsy
Well-known member
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 trick, but it doesn't seem to work. maybe it's not possible (which is fine) but im just curious to see some examples of wild cards in use so I can better understand how those work.
thanks in advance for any help you can provide!
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 trick, but it doesn't seem to work. maybe it's not possible (which is fine) but im just curious to see some examples of wild cards in use so I can better understand how those work.
thanks in advance for any help you can provide!