From 35f4bba119dbf58142fb756b5c10069966f2799f Mon Sep 17 00:00:00 2001 From: Stephan Date: Tue, 11 Dec 2018 10:00:55 +0100 Subject: [PATCH] fix UrlProvider for invariant under variant --- src/Umbraco.Web/Routing/UrlProvider.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Umbraco.Web/Routing/UrlProvider.cs b/src/Umbraco.Web/Routing/UrlProvider.cs index 36c3ba5533..b265d48923 100644 --- a/src/Umbraco.Web/Routing/UrlProvider.cs +++ b/src/Umbraco.Web/Routing/UrlProvider.cs @@ -96,7 +96,7 @@ namespace Umbraco.Web.Routing /// public string GetUrl(IPublishedContent content, bool absolute, string culture = null, Uri current = null) => GetUrl(content, GetMode(absolute), culture, current); - + /// /// Gets the url of a published content. /// @@ -196,10 +196,6 @@ namespace Umbraco.Web.Routing if (culture == null) culture = _variationContextAccessor?.VariationContext?.Culture ?? ""; } - else - { - culture = null; - } if (current == null) current = _umbracoContext.CleanedUmbracoUrl;