Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I need to go back to the previous URL on click of a button in lightning component.Currently I am using window.history.back(); for the same. Is it good practice to use window.history.back()?
Yes, window.history methods are allowed, so you should feel free to use them if they are appropriate to the task at hand.
4 days ago