WIP - gets 'inbound' routing working to generate culture specific URLs

This commit is contained in:
Shannon
2018-04-24 01:31:01 +10:00
parent 7d349ef518
commit 48641166b9
36 changed files with 350 additions and 85 deletions

View File

@@ -112,7 +112,7 @@ namespace Umbraco.Web.PublishedCache.XmlPublishedCache
return GetByRoute(PreviewDefault, route, hideTopLevelNode);
}
public virtual string GetRouteById(bool preview, int contentId)
public virtual string GetRouteById(bool preview, int contentId, string language = null)
{
// try to get from cache if not previewing
var route = preview || _routesCache == null ? null : _routesCache.GetRoute(contentId);
@@ -137,9 +137,9 @@ namespace Umbraco.Web.PublishedCache.XmlPublishedCache
return route;
}
public string GetRouteById(int contentId)
public string GetRouteById(int contentId, string language = null)
{
return GetRouteById(PreviewDefault, contentId);
return GetRouteById(PreviewDefault, contentId, language);
}
IPublishedContent DetermineIdByRoute(bool preview, string route, bool hideTopLevelNode)