From a23fb7bc741df76376b640a4db5abe2fb92991fe Mon Sep 17 00:00:00 2001 From: Tom Fulton Date: Mon, 23 Jun 2014 12:16:14 -0400 Subject: [PATCH] Support virtual paths when defining PropertyEditors via Attributes (U4-5128) --- src/Umbraco.Core/PropertyEditors/PropertyEditor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Core/PropertyEditors/PropertyEditor.cs b/src/Umbraco.Core/PropertyEditors/PropertyEditor.cs index cdc38f7cc2..baa1431f29 100644 --- a/src/Umbraco.Core/PropertyEditors/PropertyEditor.cs +++ b/src/Umbraco.Core/PropertyEditors/PropertyEditor.cs @@ -114,7 +114,7 @@ namespace Umbraco.Core.PropertyEditors throw new NotImplementedException("This method must be implemented if a view is not explicitly set"); } - editor.View = _attribute.EditorView; + editor.View = _attribute.EditorView.StartsWith("~/") ? IOHelper.ResolveUrl(_attribute.EditorView) : _attribute.EditorView; editor.ValueType = _attribute.ValueType; editor.HideLabel = _attribute.HideLabel; return editor;