diff --git a/modules/blogging/src/Volo.Blogging.Web/Pages/Blogs/Posts/Detail.cshtml.cs b/modules/blogging/src/Volo.Blogging.Web/Pages/Blogs/Posts/Detail.cshtml.cs index de1f9dfdb06..f13936a5afc 100644 --- a/modules/blogging/src/Volo.Blogging.Web/Pages/Blogs/Posts/Detail.cshtml.cs +++ b/modules/blogging/src/Volo.Blogging.Web/Pages/Blogs/Posts/Detail.cshtml.cs @@ -98,7 +98,9 @@ public virtual async Task OnPostAsync() await GetData(); - return Page(); + // PRG pattern + // Redirect to the same page to prevent form resubmission + return RedirectToPage(); } private async Task GetData()