public function proxy() {
        if (empty($this->Model) || empty($this->request->data[$this->Model->alias])) {
            $this->redirect($this->referer());
        }

        $data = $this->request->data[$this->Model->alias];
        $named = array();

        foreach ($data as $key => $value) {
            if (
                mb_substr($key, -7) === '_filter' ||
                mb_substr($key, -11) === '_type_ahead' ||
                $value === '') {
                continue;
            }

            $named[$key] = urlencode($value);

            if (isset($data[$key . '_filter'])) {
                $named[$key . '_filter'] = urlencode($data[$key . '_filter']);
            }

            if (isset($data[$key . '_type_ahead'])) {
                $named[$key . '_type_ahead'] = urlencode($data[$key . '_type_ahead']);
            }
        }

        $url = array('action' => 'index',);

        if ($this->name === 'Crud') {
            $url['model'] = $this->Model->urlSlug;
        }

        $this->redirect(array_merge($named, $url));
    }