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

xen: url comands, is there a list of avaiable xen commands some where?


Well-known member
On an External page, as mentioned here:

When the page is external, it often contains "index.php?" in the url, so when I use the <xen:link full:etc
I get a link to myforum/index.php?etc/

Is there a command to get mysite/myforum/
(without the index.php?)

This will be useful for a plug-in, I want it to work on sites that have installed there forums as
www.mysite/myforum/ as well as www.myforum

Is there also a list of avaiable xen commands that I could use ?


Well-known member
Thanks James

But I cant make sure everyone that uses the plugin switches on "freindly urls"... it's a deal breaker :(

I've found that <xen:link etc does not "know" where the forum is, it's just a relative link

when you come from a page like:

both types of links always return "/index.php?ect"

<xen:link full:here
returns: http://localhost/xenforo/index.php?here/

<xen:link here
returns: index.php?here/

I need something that always returns the forum root (but making sure index.php? isnt added to the end)

Nothing in that post :( for returning the forum root

I'm thinking, that I might need to push in my own param for this


Well-known member
Can't you just use the index.php URL? If the user is using friendly URLs then it'll automatically rewrite into the proper format.

What is it you're trying to achieve?


Well-known member
I dont think I can do that for a POST request, I might be mistaken (I'll try), but I just know it is going to cause issues with certain forums later down the line (certain forums with odd re-writes, or subdomains, etc)

When I come from an external pages like "http://localhost/xenforo/index.php?xxx/yyy"
then the full returns: http://localhost/xenforo/index.php?xxx/test
the relative returns: index.php?test/

I've seen that sometimes the following param is sent:
$requestPaths.fullBasePath, which I think returns the full forum base url "http://localhost/xenforo/" ,
If this was available as a xenforo command (instead of a param in only certain places) it would be ideal.

I might try to pull that into my template to solve this problem