src/Conversation/ConversationContext.php
public function generateUrl($routeName, $parameters = array(), $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH)
    {
        if ($this->conversation !== null) {
            $route = $this->router->getRouteCollection()->get($routeName);
            if ($route !== null) {
                $controllerName = $route->getDefault('_controller');
                $controllerServiceId = substr($controllerName, 0, strpos($controllerName, ':'));
                if ($controllerServiceId == $this->conversation->getPageflow()->getPageflowId()) {
                    $parameters[$this->conversationParameterName] = $this->conversation->getConversationId();
                }
            }
        }

        return $this->router->generate($routeName, $parameters, $referenceType);
    }
public function generateUrl($routeName, $parameters = array(), $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH)
    {
        if ($this->conversation !== null) {
            $route = $this->router->getRouteCollection()->get($routeName);
            if ($route !== null) {
                $controllerName = $route->getDefault('_controller');
                $controllerServiceId = substr($controllerName, 0, strpos($controllerName, ':'));
                if ($controllerServiceId == $this->conversation->getPageflow()->getPageflowId()) {
                    $parameters[$this->conversationParameterName] = $this->conversation->getConversationId();
                }
            }
        }

        return $this->router->generate($routeName, $parameters, $referenceType);
    }
{@inheritdoc}