From 048a8683dd1dfc623805c83096929f7a73ff164c Mon Sep 17 00:00:00 2001 From: Tom Fulton Date: Mon, 29 Jun 2015 17:48:01 -0600 Subject: [PATCH] Support virtual paths for PreValueField attributes (U4-6775) --- src/Umbraco.Core/PropertyEditors/PreValueEditor.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Core/PropertyEditors/PreValueEditor.cs b/src/Umbraco.Core/PropertyEditors/PreValueEditor.cs index 89e17438f3..d773eed2e9 100644 --- a/src/Umbraco.Core/PropertyEditors/PreValueEditor.cs +++ b/src/Umbraco.Core/PropertyEditors/PreValueEditor.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Reflection; using Newtonsoft.Json; +using Umbraco.Core.IO; using Umbraco.Core.Logging; using Umbraco.Core.Models; @@ -84,7 +85,7 @@ namespace Umbraco.Core.PropertyEditors Name = att.Name, Description = att.Description, HideLabel = att.HideLabel, - View = att.View + View = att.View.StartsWith("~/") ? IOHelper.ResolveUrl(att.View) : att.View }; }