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

Change URL when slug changes

Discussion in 'XenForo Development Discussions' started by Bugfix, Jun 20, 2014.

  1. Bugfix

    Bugfix Member

  2. Chris D

    Chris D XenForo Developer Staff Member

    This is the exact code which does it currently for threads:
    PHP:
    $this->canonicalizeRequestUrl(
        
    XenForo_Link::buildPublicLink('threads'$thread, array('page' => $page))
    );
    So, you would just need to alter that and add that to your add-on's controller.
     
  3. Bugfix

    Bugfix Member

    Hey Chris - Thank you!
     

Share This Page