original_string: protected function _loginActionRedirectUrl()
      {
          $urlToRedirectBackTo = $this->_getUrlToRedirectBackTo();
  
          $loginAction = $this->_config['loginAction'];
          if ($urlToRedirectBackTo === '/') {
              return $loginAction;
          }
  
          if (is_array($loginAction)) {
              $loginAction['?'][static::QUERY_STRING_REDIRECT] = $urlToRedirectBackTo;
          } else {
              $char = strpos($loginAction, '?') === false ? '?' : '&';
              $loginAction .= $char . static::QUERY_STRING_REDIRECT . '=' . urlencode($urlToRedirectBackTo);
          }
  
          return $loginAction;
      }
code: protected function _loginActionRedirectUrl()
      {
          $urlToRedirectBackTo = $this->_getUrlToRedirectBackTo();
  
          $loginAction = $this->_config['loginAction'];
          if ($urlToRedirectBackTo === '/') {
              return $loginAction;
          }
  
          if (is_array($loginAction)) {
              $loginAction['?'][static::QUERY_STRING_REDIRECT] = $urlToRedirectBackTo;
          } else {
              $char = strpos($loginAction, '?') === false ? '?' : '&';
              $loginAction .= $char . static::QUERY_STRING_REDIRECT . '=' . urlencode($urlToRedirectBackTo);
          }
  
          return $loginAction;
      }
code_tokens: protected function _loginActionRedirectUrl ( ) { $ urlToRedirectBackTo = $ this -> _getUrlToRedirectBackTo ( ) ; $ loginAction = $ this -> _config [ 'loginAction' ] ; if ( $ urlToRedirectBackTo === '/' ) { return $ loginAction ; } if ( is_array ( $ loginAction ) ) { $ loginAction [ '?' ] [ static :: QUERY_STRING_REDIRECT ] = $ urlToRedirectBackTo ; } else { $ char = strpos ( $ loginAction , '?' ) === false ? '?' : '&' ; $ loginAction .= $ char . static :: QUERY_STRING_REDIRECT . '=' . urlencode ( $ urlToRedirectBackTo ) ; } return $ loginAction ; }
docstring: Returns the URL of the login action to redirect to.
  
  This includes the redirect query string if applicable.
  
  @return array|string
docstring_tokens: Returns the URL of the login action to redirect to .