Added culture to the ApiContentRouteBuilder to include variant languages.
This commit is contained in:
committed by
Andy Butland
parent
d9de69c40f
commit
3892670d92
@@ -30,7 +30,7 @@ public abstract class ApiContentBuilderBase<T>
|
|||||||
|
|
||||||
public virtual T? Build(IPublishedContent content)
|
public virtual T? Build(IPublishedContent content)
|
||||||
{
|
{
|
||||||
IApiContentRoute? route = ApiContentRouteBuilder.Build(content);
|
IApiContentRoute? route = ApiContentRouteBuilder.Build(content, VariationContextAccessor.VariationContext?.Culture);
|
||||||
if (route is null)
|
if (route is null)
|
||||||
{
|
{
|
||||||
return default;
|
return default;
|
||||||
|
|||||||
Reference in New Issue
Block a user