mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-24 13:33:34 +08:00
Cleaned up all blog urls to go through UrlHelper extension methods so refactoring is easier (except for the admin menu which only works with Action links at the moment) and added admin menu items for blogs.
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4041918
This commit is contained in:
@@ -56,7 +56,7 @@ namespace Orchard.Blogs.Controllers {
|
||||
|
||||
Blog blog = _blogService.CreateBlog(model.ToCreateBlogParams());
|
||||
|
||||
return RedirectToAction("edit", new { blog.Record.Id });
|
||||
return Redirect(Url.BlogEdit(blog.Slug));
|
||||
}
|
||||
|
||||
public ActionResult Edit(string blogSlug) {
|
||||
@@ -75,7 +75,7 @@ namespace Orchard.Blogs.Controllers {
|
||||
|
||||
_notifier.Information(T("Blog information updated"));
|
||||
|
||||
return RedirectToAction("Edit", new { blogSlug });
|
||||
return Redirect(Url.BlogEdit(model.Slug));
|
||||
}
|
||||
|
||||
bool IUpdateModel.TryUpdateModel<TModel>(TModel model, string prefix, string[] includeProperties, string[] excludeProperties) {
|
||||
|
Reference in New Issue
Block a user