|
|
|
@ -62,8 +62,7 @@ namespace Volo.Blogging.Pages.Blog.Posts
|
|
|
|
|
var editedPost = await _postAppService.UpdateAsync(Post.Id, post);
|
|
|
|
|
var blog = await _blogAppService.GetAsync(editedPost.BlogId);
|
|
|
|
|
|
|
|
|
|
// return Redirect(Url.Content($"~/blog/{WebUtility.UrlEncode(blog.ShortName)}/{WebUtility.UrlEncode(editedPost.Url)}"));
|
|
|
|
|
return RedirectToPage("/Blog/Posts/Detail", new { blogShortName = blog.ShortName, postUrl = editedPost.Url });
|
|
|
|
|
return RedirectToPage("/Blogs/Posts/Detail", new { blogShortName = blog.ShortName, postUrl = editedPost.Url });
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|