Fix for JsSource on legacy trees not supporting virtual paths (~/) - U4-6346
Conflicts: src/umbraco.cms/Actions/Action.cs
This commit is contained in:
@@ -67,7 +67,7 @@ namespace umbraco.cms.presentation.developer.RelationTypes.TreeMenu
|
||||
/// </summary>
|
||||
public string JsSource
|
||||
{
|
||||
get { return "/umbraco/developer/RelationTypes/TreeMenu/ActionDeleteRelationType.js"; }
|
||||
get { return "~/umbraco/developer/RelationTypes/TreeMenu/ActionDeleteRelationType.js"; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -67,7 +67,7 @@ namespace umbraco.cms.presentation.developer.RelationTypes.TreeMenu
|
||||
/// </summary>
|
||||
public string JsSource
|
||||
{
|
||||
get { return "/umbraco/developer/RelationTypes/TreeMenu/ActionNewRelationType.js"; }
|
||||
get { return "~/umbraco/developer/RelationTypes/TreeMenu/ActionNewRelationType.js"; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -13,6 +13,7 @@ using umbraco.cms.businesslogic.workflow;
|
||||
using umbraco.interfaces;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Linq;
|
||||
using Umbraco.Core.IO;
|
||||
using TypeFinder = Umbraco.Core.TypeFinder;
|
||||
|
||||
namespace umbraco.BusinessLogic.Actions
|
||||
@@ -88,7 +89,7 @@ namespace umbraco.BusinessLogic.Actions
|
||||
{
|
||||
return ActionsResolver.Current.Actions
|
||||
.Where(x => !string.IsNullOrWhiteSpace(x.JsSource))
|
||||
.Select(x => x.JsSource).ToList();
|
||||
.Select(x => IOHelper.ResolveUrl(x.JsSource)).ToList();
|
||||
//return ActionJsReference;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user