Skip to content

Commit 8c78057

Browse files
Don't hold static UmbracoContext reference
Fixes #11951 by changing `UmbracoContext` to be an expression rather than being a static setter thus ensuring the current umbraco context is always returned, rather than a cached version from initial execution
1 parent 2abf455 commit 8c78057

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Umbraco.Web.Common/Extensions/FriendlyUrlHelperExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Umbraco.Extensions
99
public static class FriendlyUrlHelperExtensions
1010
{
1111

12-
private static IUmbracoContext UmbracoContext { get; } =
12+
private static IUmbracoContext UmbracoContext =>
1313
StaticServiceProvider.Instance.GetRequiredService<IUmbracoContextAccessor>().GetRequiredUmbracoContext();
1414

1515
private static IDataProtectionProvider DataProtectionProvider { get; } =

0 commit comments

Comments
 (0)