Skip to content

Commit

Permalink
Added check for duplicate path (OrchardCMS#7725)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoViglione-Laser authored and sebastienros committed Jun 1, 2017
1 parent f4e9393 commit cc22b6d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public void RegenerateAutoroute(ContentItem item) {
if (item.Has<AutoroutePart>()) {
_autorouteService.RemoveAliases(item.As<AutoroutePart>());
item.As<AutoroutePart>().DisplayAlias = _autorouteService.GenerateAlias(item.As<AutoroutePart>());
_autorouteService.ProcessPath(item.As<AutoroutePart>());
_autorouteService.PublishAlias(item.As<AutoroutePart>());
}
}
Expand Down

0 comments on commit cc22b6d

Please sign in to comment.