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

Overwriting canonicalizeRequestUrl in child?

Discussion in 'XenForo Development Discussions' started by Jaxel, Jul 2, 2011.

  1. Jaxel

    Jaxel Well-Known Member

    XenForo_ControllerPublic_Thread->Index has the following code:
        XenForo_Link::buildPublicLink('threads', $thread, array('page' => $page))
    I would like to replace it with this under specific circumstances:
        XenForo_Link::buildPublicLink('articles', $thread, array('page' => $page))
    I have extended this using a function: Custom_ControllerPublic_Thread->Index:
    $response = parent::actionIndex();
    if ($this->getModelFromCache('Custom_Model_Thread')->getById($response->params['thread']))
        // something here!
    return $response;
    How would I override the canonicalizeRequestUrl function without causing an infinite loop?

Share This Page