public function url($service)
    {
        $url = 'index.php?option=com_connect&view=login&server='.$service;

        if (AnRequest::get('get.return', 'cmd')) {
            $url .= '&return='.AnRequest::get('get.return', 'raw');
        }

        return route($url);
    }
public function url($service)
    {
        $url = 'index.php?option=com_connect&view=login&server='.$service;

        if (AnRequest::get('get.return', 'cmd')) {
            $url .= '&return='.AnRequest::get('get.return', 'raw');
        }

        return route($url);
    }
public function url ( $ service ) { $ url = 'index.php?option=com_connect&view=login&server=' . $ service ; if ( AnRequest :: get ( 'get.return' , 'cmd' ) ) { $ url .= '&return=' . AnRequest :: get ( 'get.return' , 'raw' ) ; } return route ( $ url ) ; }
Returns the url login for a service.

@param string $service

@return string
Returns the url login for a service .