I have angular app and based on previous path name not page name i want to store the value either in cookie or local storage
Path name of first page is /content/drive.html/find-drive
Path name of second page is /content/drive.html/drive-results
When I am on the second page I want to store find-drive
value in cookie
Similarly
Path name of first page is /content/drive.html/find-drive-advanced
Path name of second page is /content/drive.html/drive-results
When I am on second page i want to store the previous path location in my cookie or local storage.for this scenario i want to store"find-drive-advanced"
Note: document.referrer
doesn't work, and window.parent.URl
doesn't work