Browse Source

Fix post resubmit

pull/20425/head
SALİH ÖZKARA 2 years ago
parent
commit
549d747b9e
  1. 4
      modules/blogging/src/Volo.Blogging.Web/Pages/Blogs/Posts/Detail.cshtml.cs

4
modules/blogging/src/Volo.Blogging.Web/Pages/Blogs/Posts/Detail.cshtml.cs

@ -98,7 +98,9 @@ namespace Volo.Blogging.Pages.Blogs.Posts
await GetData(); await GetData();
return Page(); // PRG pattern
// Redirect to the same page to prevent form resubmission
return RedirectToPage();
} }
private async Task GetData() private async Task GetData()

Loading…
Cancel
Save