diff --git a/Lombiq.JsonEditor/Controllers/AdminController.cs b/Lombiq.JsonEditor/Controllers/AdminController.cs index 9f8eef7..b102198 100644 --- a/Lombiq.JsonEditor/Controllers/AdminController.cs +++ b/Lombiq.JsonEditor/Controllers/AdminController.cs @@ -54,7 +54,10 @@ await _contentManager.GetAsync(contentItemId, VersionOptions.Latest) is not { } return NotFound(); } - var title = T["Edit {0} as JSON", contentItem.ContentType].Value; + var name = string.IsNullOrWhiteSpace(contentItem.DisplayText) + ? contentItem.ContentType + : $"\"{contentItem.DisplayText}\""; + var title = T["Edit {0} as JSON", name].Value; _pageTitleBuilder.AddSegment(new StringHtmlContent(title)); var titleShape = await _shapeFactory.CreateAsync("TitlePart", model => {