public function redirect($url, $msg = '', $msgType = 'message', $moved = false) {

        // If the message exists, enqueue it.
        if (trim($msg)) {
            $this->enqueueMessage($msg, $msgType);
        }

        // Persist messages if they exist.
        if (count($this->_messageQueue)) {
            $session = $this->getSession();
            $session->set('application.queue', $this->_messageQueue);
        }

	    $container = $this->getContainer();
	    $profiler = $container->has('profiler') ? $container->get('profiler') : false;
	    if ($profiler) {
		    $profiler->mark('redirect');
		    $profiler->dump($this->get('uri.current'));
	    }

        parent::redirect($url, $moved);
    }