protected static function getRedirectUri($name)
	{
		// Get the hub url
		$service = trim(Request::base(), '/');

		if (substr($service, -13) == 'administrator')
		{
			$scope = '/index.php?option=com_login&task=login&authenticator=' . $name;
		}
		else
		{
			// If someone is logged in already, then we're linking an account
			$task  = (User::isGuest()) ? 'user.login' : 'user.link';
			$scope = '/index.php?option=com_users&task=' . $task . '&authenticator=' . $name;
		}

		return $service . $scope;
	}
protected static function getRedirectUri($name)
	{
		// Get the hub url
		$service = trim(Request::base(), '/');

		if (substr($service, -13) == 'administrator')
		{
			$scope = '/index.php?option=com_login&task=login&authenticator=' . $name;
		}
		else
		{
			// If someone is logged in already, then we're linking an account
			$task  = (User::isGuest()) ? 'user.login' : 'user.link';
			$scope = '/index.php?option=com_users&task=' . $task . '&authenticator=' . $name;
		}

		return $service . $scope;
	}
protected static function getRedirectUri ( $ name ) { // Get the hub url $ service = trim ( Request :: base ( ) , '/' ) ; if ( substr ( $ service , - 13 ) == 'administrator' ) { $ scope = '/index.php?option=com_login&task=login&authenticator=' . $ name ; } else { // If someone is logged in already, then we're linking an account $ task = ( User :: isGuest ( ) ) ? 'user.login' : 'user.link' ; $ scope = '/index.php?option=com_users&task=' . $ task . '&authenticator=' . $ name ; } return $ service . $ scope ; }
Builds the redirect URI based on the current URI and a few other assumptions

@param   string  $name  The plugin name
@return  string
Builds the redirect URI based on the current URI and a few other assumptions