1. 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

Discussion in 'XenForo Questions and Support' started by John L., Jun 13, 2012.

  1. John L.

    John L. Well-Known Member

    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?
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    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.
     
  3. John L.

    John L. Well-Known Member

    Thanks for the info, guess I'll stick with the default functionality :)
     
  4. Optic

    Optic Well-Known Member

    Hello @Jake Bunce - I am looking at removing link forum redirects.

    Would editing that file still be the best way to go?
     
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Yes. That is the relevant code. A file edit or addon can be used to modify it.
     

Share This Page