mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixing the setting of route's slug and path in the RoutePartDriver
--HG-- branch : dev
This commit is contained in:
@@ -75,8 +75,6 @@ namespace Orchard.Core.Routable.Drivers {
|
||||
updater.TryUpdateModel(model, Prefix, null, null);
|
||||
part.Title = model.Title;
|
||||
part.Slug = model.Slug;
|
||||
|
||||
// TEMP: path format patterns replaces this logic
|
||||
part.Path = part.GetPathFromSlug(model.Slug);
|
||||
|
||||
if (!_routableService.IsSlugValid(part.Slug)) {
|
||||
@@ -89,6 +87,9 @@ namespace Orchard.Core.Routable.Drivers {
|
||||
originalSlug, part.Slug, part.ContentItem.ContentType));
|
||||
}
|
||||
|
||||
// TEMP: path format patterns replaces this logic
|
||||
part.Path = part.GetPathFromSlug(part.Slug);
|
||||
|
||||
if (part.ContentItem.Id != 0 && model.PromoteToHomePage && _routableHomePageProvider != null) {
|
||||
CurrentSite.HomePage = _routableHomePageProvider.GetSettingValue(part.ContentItem.Id);
|
||||
}
|
||||
|
Reference in New Issue
Block a user