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

Rewrite string with spaces to "url" string with -

#1
Hey,
i want to rewrite a string (from the database) to use it in a url like this:
Code:
route/string-from-database.2/
At the moment the url looks like this:
Code:
route/string from database.2/
I searched already in XenForo_ControllerPublic_Thread and in XenForo_Route_Prefix_Threads, but i cant finde the piece of code which does this :(

Can someone give me a hint? :)

Thank you
attemis
 

Jeremy

Well-known member
#3
Ah, sorry, I see it now. You should be using XenForo_Link for the route and it pulls out the necessary ID and string based on the route prefix definitions.