public function redirect($url, $code = 302)
    {
        if ($this->data()->virtualOwner) {
            $parts = explode('#', $url);
            if (isset($parts[1])) {
                $url = $parts[0] . '#' . $this->data()->virtualOwner->ID;
            }
        }

        return parent::redirect($url, $code);
    }
public function redirect($url, $code = 302)
    {
        if ($this->data()->virtualOwner) {
            $parts = explode('#', $url);
            if (isset($parts[1])) {
                $url = $parts[0] . '#' . $this->data()->virtualOwner->ID;
            }
        }

        return parent::redirect($url, $code);
    }
public function redirect ( $ url , $ code = 302 ) { if ( $ this -> data ( ) -> virtualOwner ) { $ parts = explode ( '#' , $ url ) ; if ( isset ( $ parts [ 1 ] ) ) { $ url = $ parts [ 0 ] . '#' . $ this -> data ( ) -> virtualOwner -> ID ; } } return parent :: redirect ( $ url , $ code ) ; }
if this is a virtual request, change the hash if set.

@param string $url
@param int $code

@return HTTPResponse
if this is a virtual request change the hash if set .