A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
I'm trying to implement a temporary splash-page which will be shown if a session variable and a property is set to true. I check this variable in the default action, like so:
Then I return the appropiate view depending on the result.
What I now need is to set the session value to false if the user clicks a link on the "Warning"-view page. The link should then point the user to the StartPage.
My problem is: How do you easiest make a link that sets the session value to true and redirects the user the the StartPage?