From f7b42a50cce87d18a23c9a8a11e98c75d30f4bb2 Mon Sep 17 00:00:00 2001 From: Vlael Layug Date: Fri, 21 Oct 2022 17:35:51 +0800 Subject: [PATCH] add default culture when there's only 1 language configured --- src/Umbraco.Web.BackOffice/Trees/ContentTreeController.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Umbraco.Web.BackOffice/Trees/ContentTreeController.cs b/src/Umbraco.Web.BackOffice/Trees/ContentTreeController.cs index 4728ebbca8..8823b62131 100644 --- a/src/Umbraco.Web.BackOffice/Trees/ContentTreeController.cs +++ b/src/Umbraco.Web.BackOffice/Trees/ContentTreeController.cs @@ -109,6 +109,11 @@ public class ContentTreeController : ContentTreeControllerBase, ISearchableTreeW { var culture = queryStrings?["culture"].ToString(); + if(culture.IsNullOrWhiteSpace()) + { + culture = _localizationService.GetDefaultLanguageIsoCode(); + } + IEnumerable allowedUserOptions = GetAllowedUserMenuItemsForNode(entity); if (CanUserAccessNode(entity, allowedUserOptions, culture)) {