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

XF 1.1 Remove Link Forum Redirect

John L.

Well-known member
#1
Hey Folks,

This may be a silly question but why do the link forum nodes create their own redirect URLs? Shouldn't it just use the direct link to where ever it's going to? Is there a way to remove that either via XenForo or an addon?
 

Jake Bunce

XenForo moderator
Staff member
#2
It's a redirect not a direct link. That's why.

You can probably change this by editing the route:

library/XenForo/Route/Prefix/LinkForums.php

Modify the buildLink() function to check for $data['link_url'] and return that as the link if it's set. But there may be extra considerations with an edit like this. You will have to test it.
 

John L.

Well-known member
#3
It's a redirect not a direct link. That's why.

You can probably change this by editing the route:

library/XenForo/Route/Prefix/LinkForums.php

Modify the buildLink() function to check for $data['link_url'] and return that as the link if it's set. But there may be extra considerations with an edit like this. You will have to test it.
Thanks for the info, guess I'll stick with the default functionality :)