Skip to content

Commit

Permalink
Vlogging: fix after-post redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
yekalkan committed Mar 9, 2020
1 parent b9e6b78 commit 4a0567a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ public async Task<ActionResult> OnPostAsync()
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 });
}
}

Expand Down

0 comments on commit 4a0567a

Please sign in to comment.