|
|
|
@ -1,6 +1,7 @@ |
|
|
|
using System; |
|
|
|
using System.ComponentModel.DataAnnotations; |
|
|
|
using System.Linq; |
|
|
|
using System.Net; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Microsoft.AspNetCore.Authorization; |
|
|
|
using Microsoft.AspNetCore.Mvc; |
|
|
|
@ -61,7 +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/{blog.ShortName}/{editedPost.Url}")); |
|
|
|
return Redirect(Url.Content($"~/blog/{WebUtility.UrlEncode(blog.ShortName)}/{WebUtility.UrlEncode(editedPost.Url)}")); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|