Redirect to the parent forum

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/
 
You need to build the url where you want to redirect him , instead of using
$this->getDynamicRedirect(),
 
Top Bottom