2015-09-04

i have an angular js application using different states , my first page is login page and it contains a forgot password link , on the click of forgot pwd the app will redirect onto forgot pwd page , after succesfull login a dashboard gets appeared the scenarios are:

when i am on login page and click browsers back button i will be redirected onto login page only .

when i am on forgot pwd page and click back button i will be redirected onto login page , as it is the first page of my application.

the problem i am facing here is when i reload my forgot password page and click on browsers back button i gets redirected onto login page and again click on back button the app gets redirected to dashboard without even login into the application , i am not getting where i am going wrong in putting my states. kindly help

here is my router.js inside app module,
here default route means dashboard

here is my routing for login module:

Show more