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

How to do this?

Mr. Goodie2Shoes

Well-known member
#1
okay... so I am trying to create something... I have created the route prefixes and stuff... at this moment, it looks like this:
Code:
http://domain.com/downloads/start/?[request code]
and I want something like this:
Code:
http://domain.com/downloads/start/[request code]
any help? :)
 

Jake Bunce

XenForo moderator
Staff member
#2
It's a little vague but...

When using link syntax in the templates there are 3 basic forms:

1) A route without any parameters, such as the index route:

Code:
{xen:link 'route'}
2) A route with parameters which generates a query string (?...):

Code:
{xen:link 'route', '', 'param=value'}
3) A route that takes a record for building the link:

Code:
{xen:link 'route', $var}
This kind of link needs a route handler with an appropriate match() and buildLink() function to build and interpret the link. XenForo_Route_Prefix_Forums is an example you can look at. If you don't want a query string in your URL then this is probably the kind of link you want.