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

responseRedirect

Discussion in 'XenForo Development Discussions' started by ragtek, Jun 9, 2011.

  1. ragtek

    ragtek Guest

    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();
     
  2. Mike

    Mike XenForo Developer Staff Member

    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).
     
    Fuhrmann likes this.

Share This Page