public function to($url)
    {
        if ($url == '/' && $this->getRoot() == $url) {
            return $url;
        }

        return $this->isValidUrl($url) ? $url : $this->generateUrl($url);
    }