I am building an app that I require that after a user successfully logins goes to a page if a session var is NOT set where based on some input data from the user this session var will be filled. After this I will pass the intended url to window.location.href in JS to redirect. So far I can only find responses as how to add
protected $redirectTo = “/something”
Can someone share some light please.