Concept Flow - Redirect from actions
User submits form
Action function runs
Check if redirect needed?
No→Return data
Yes
Return redirect response
Browser navigates to new URL
When a form is submitted, the action function runs. If it returns a redirect, the browser navigates to the new URL. Otherwise, it stays and updates the page.