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

responseRedirect

R

ragtek

Guest
#1
Why is this response
PHP:
 return $this->responseRedirect(
                XenForo_ControllerResponse_Redirect::SUCCESS,
                $link
            );
made per $_POST?

If i redirect with this, it's going always into the isPost() part, but i need a "normal" response
PHP:
 public function actionIndex()
    {

        if ($this->_request->isPost())
        {
            $this->_assertPostOnly();
 

Mike

XenForo developer
Staff member
#2
In FF, if you have an error before the redirect, fix the error, and hit refresh, it may redirect you via POST for some reason (or something similar to that). However, other than that, it should redirect with via GET (that appears to be the documented requirement for a 303 redirect).