mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 11:44:58 +08:00
Corrected route definition on slugify
--HG-- branch : dev
This commit is contained in:
@@ -22,13 +22,13 @@ namespace Orchard.Core.Routable {
|
||||
Route = new Route(
|
||||
"Admin/Common/Routable/Slugify",
|
||||
new RouteValueDictionary {
|
||||
{"area", "Common"},
|
||||
{"controller", "Routable"},
|
||||
{"area", "Routable"},
|
||||
{"controller", "Item"},
|
||||
{"action", "Slugify"}
|
||||
},
|
||||
new RouteValueDictionary(),
|
||||
new RouteValueDictionary {
|
||||
{"area", "Common"}
|
||||
{"area", "Routable"}
|
||||
},
|
||||
new MvcRouteHandler())
|
||||
},
|
||||
|
@@ -1,9 +0,0 @@
|
||||
using System.Web.Mvc;
|
||||
|
||||
namespace Orchard.ContentManagement.Extenstions {
|
||||
public static class UrlHelperExtensions {
|
||||
public static string Slugify(this UrlHelper urlHelper) {
|
||||
return urlHelper.Action("Slugify", "Routable", new { area = "Common" });
|
||||
}
|
||||
}
|
||||
}
|
@@ -233,9 +233,6 @@
|
||||
<Compile Include="ContentManagement\FieldStorage\IFieldStorageProvider.cs" />
|
||||
<Compile Include="ContentManagement\FieldStorage\IFieldStorageProviderSelector.cs" />
|
||||
<Compile Include="ContentManagement\FieldStorage\InfosetStorage\InfosetStorageProvider.cs" />
|
||||
<Compile Include="ContentManagement\Extenstions\UrlHelperExtensions.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ContentManagement\FieldStorage\InfosetStorage\InfosetHandler.cs" />
|
||||
<Compile Include="ContentManagement\FieldStorage\InfosetStorage\InfosetPart.cs" />
|
||||
<Compile Include="ContentManagement\FieldStorage\SimpleFieldStorage.cs" />
|
||||
|
Reference in New Issue
Block a user