Fix for Issue 12262

Fixes issue https://github.com/umbraco/Umbraco-CMS/issues/12262
This commit is contained in:
Russell
2022-04-15 11:54:23 +12:00
committed by Nathan Woulfe
parent 0134199035
commit 8baa66b8f3

View File

@@ -15,7 +15,7 @@ catch (Exception ex)
public static string EditorView(dynamic contentItem)
{
string view = contentItem.editor.render != null ? contentItem.editor.render.ToString() : contentItem.editor.view.ToString();
view = view.ToLower().Replace(".html", ".cshtml");
view = view.Replace(".html", ".cshtml");
if (!view.Contains("/"))
{