Browse Source

Merge pull request #20425 from abpframework/issue-4523

Fix post resubmit
pull/20429/head
Engincan VESKE 2 years ago
committed by GitHub
parent
commit
c182a8333f
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  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();
return Page();
// PRG pattern
// Redirect to the same page to prevent form resubmission
return RedirectToPage();
}
private async Task GetData()

Loading…
Cancel
Save