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

Redirect to the parent forum

Discussion in 'XenForo Development Discussions' started by tenants, Sep 16, 2011.

  1. tenants

    tenants Well-Known Member

    The following will redirect me from my "thread page"->overlay back to the "thread page",

    Code:
                return $this->responseRedirect(
                    XenForo_ControllerResponse_Redirect::SUCCESS,
                    $this->getDynamicRedirect(),
                    'your thread has been bumped'
                );
    but how can I return the user back to the parent forum
    (I'll use phrases once I've gotten everything to work)

    For instance, if I'm in "myforum.com/someforum/mythread
    with the url: myforum.com/threads/mysome-thread.46/

    I press a button, it does some request, and the above redirect works.

    how do I redirect back to myforum.com/index.php?forums/someforum/
     
  2. ragtek

    ragtek Guest

    You need to build the url where you want to redirect him , instead of using
    $this->getDynamicRedirect(),
     

Share This Page