title: How to prevent history.back() from going back to login page
body: <p>I have a back button in my application which on click should return to parent page. I am using <code>history.back()</code> for the purpose . However I am not able to prevent it from going back to login.</p>