public function getPathUrl($repositoryId, $path, $selector = null)
    {
        if ($this->getRootUrl($repositoryId) === null) {
            return null;
        }

        $url = $this->buildUrl($this->getRootUrl($repositoryId));
        $url->getPath()->append($path);

        if (!empty($selector)) {
            $url->getQuery()->modify([Constants::PARAM_SELECTOR => $selector]);
        }

        return $url;
    }