• 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

tenants

Well-known member
#1
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/
 
R

ragtek

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