everyone.
I got the issue with the getting the previous path, which i came from to current one.
I found lots of examples that to get back to previous path I need location.back()
.
Is there is another way how to get the url for previous path? Thank you.