protected function generatePageUrl($route, array $parameters = array())
    {
//        $parts = explode(' ', trim($page), 2);

//        $route  = implode('_', $parts);

//        $route = str_replace(' ', '_', $route);

        $path = $this->generateUrl($route, $parameters);
//        var_dump($this->getMinkParameter('base_url'));
//        var_dump($path);
//        die;
        if ('Selenium2Driver' === strstr(get_class($this->getSession()->getDriver()), 'Selenium2Driver')) {
            return sprintf('%s%s', $this->getMinkParameter('base_url'), $path);
        }
        
        return $path;
    }
protected function generatePageUrl($route, array $parameters = array())
    {
//        $parts = explode(' ', trim($page), 2);

//        $route  = implode('_', $parts);

//        $route = str_replace(' ', '_', $route);

        $path = $this->generateUrl($route, $parameters);
//        var_dump($this->getMinkParameter('base_url'));
//        var_dump($path);
//        die;
        if ('Selenium2Driver' === strstr(get_class($this->getSession()->getDriver()), 'Selenium2Driver')) {
            return sprintf('%s%s', $this->getMinkParameter('base_url'), $path);
        }
        
        return $path;
    }
protected function generatePageUrl ( $ route , array $ parameters = array ( ) ) { //        $parts = explode(' ', trim($page), 2); //        $route  = implode('_', $parts); //        $route = str_replace(' ', '_', $route); $ path = $ this -> generateUrl ( $ route , $ parameters ) ; //        var_dump($this->getMinkParameter('base_url')); //        var_dump($path); //        die; if ( 'Selenium2Driver' === strstr ( get_class ( $ this -> getSession ( ) -> getDriver ( ) ) , 'Selenium2Driver' ) ) { return sprintf ( '%s%s' , $ this -> getMinkParameter ( 'base_url' ) , $ path ) ; } return $ path ; }
Generate page url.
This method uses simple convention where page argument is prefixed
with "sylius_" and used as route name passed to router generate method.

@param string $page
@param array  $parameters

@return string
Generate page url . This method uses simple convention where page argument is prefixed with sylius_ and used as route name passed to router generate method .