Skip to content

Commit

Permalink
Merge pull request #20425 from abpframework/issue-4523
Browse files Browse the repository at this point in the history
Fix post resubmit
  • Loading branch information
EngincanV authored Aug 7, 2024
2 parents a87f52c + 549d747 commit c182a83
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ public virtual async Task<IActionResult> OnPostAsync()

await GetData();

return Page();
// PRG pattern
// Redirect to the same page to prevent form resubmission
return RedirectToPage();
}

private async Task GetData()
Expand Down

0 comments on commit c182a83

Please sign in to comment.