protected function resolveRoutePathForNode(NodeInterface $node)
{
$workspaceName = $node->getContext()->getWorkspaceName();
$nodeContextPath = $node->getContextPath();
$nodeContextPathSuffix = $workspaceName !== 'live' ? substr($nodeContextPath, strpos($nodeContextPath, '@')) : '';
$currentNodeIsSiteNode = $node->getParentPath() === SiteService::SITES_ROOT_PATH;
$dimensionsUriSegment = $this->getUriSegmentForDimensions($node->getContext()->getDimensions(), $currentNodeIsSiteNode);
$requestPath = $this->getRequestPathByNode($node);
return trim($dimensionsUriSegment . $requestPath, '/') . $nodeContextPathSuffix;
}