Changing the link is not an ideal solution because it doesn’t prevent this sequence of events:
- The user logs in.
- The form is rendered for the logged in user.
- The user’s session expires or they delete their session cookie.
- The user submits the form rendered in step 2. The server redirects to the new session page, and the Turbo Frame is replaced with empty content.