mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-19 17:51:45 +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(
|
Route = new Route(
|
||||||
"Admin/Common/Routable/Slugify",
|
"Admin/Common/Routable/Slugify",
|
||||||
new RouteValueDictionary {
|
new RouteValueDictionary {
|
||||||
{"area", "Common"},
|
{"area", "Routable"},
|
||||||
{"controller", "Routable"},
|
{"controller", "Item"},
|
||||||
{"action", "Slugify"}
|
{"action", "Slugify"}
|
||||||
},
|
},
|
||||||
new RouteValueDictionary(),
|
new RouteValueDictionary(),
|
||||||
new RouteValueDictionary {
|
new RouteValueDictionary {
|
||||||
{"area", "Common"}
|
{"area", "Routable"}
|
||||||
},
|
},
|
||||||
new MvcRouteHandler())
|
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\IFieldStorageProvider.cs" />
|
||||||
<Compile Include="ContentManagement\FieldStorage\IFieldStorageProviderSelector.cs" />
|
<Compile Include="ContentManagement\FieldStorage\IFieldStorageProviderSelector.cs" />
|
||||||
<Compile Include="ContentManagement\FieldStorage\InfosetStorage\InfosetStorageProvider.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\InfosetHandler.cs" />
|
||||||
<Compile Include="ContentManagement\FieldStorage\InfosetStorage\InfosetPart.cs" />
|
<Compile Include="ContentManagement\FieldStorage\InfosetStorage\InfosetPart.cs" />
|
||||||
<Compile Include="ContentManagement\FieldStorage\SimpleFieldStorage.cs" />
|
<Compile Include="ContentManagement\FieldStorage\SimpleFieldStorage.cs" />
|
||||||
|
|||||||
Reference in New Issue
Block a user