Skip to content

Redirect to another route with data #2438

Answered by juanpprieto
Makxzod asked this question in Help
Discussion options

You must be logged in to vote

Hi, you could try passing a query param and then check for it on the Home route to determine wether to show the toast or not

// Redirect to login if no custom access token found
 if (!customerAccessToken) return response.redirect('/?isLoggedIn=false'); // renders Home component

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Makxzod
Comment options

@juanpprieto
Comment options

Answer selected by Makxzod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants