I am trying to get the previous route path in Angular. I have used this code below it is working when I am navigating from one route to another. But if I reload in the curre