react redirect after login

Sale Price:$200.00 Original Price:$600.00
sale

My problem is how to allow users access their intended url instead of redirecting them back to the home page which I currently do. roma 99 login Switch Route path="/desired-page" component= {requireAuth (DesiredPage)} / Route path="/new-page" component= {requireAuth (NewPage)} / /Switch. login facebook com login My requireAuth js is

Quantity:
Add To Cart