I need to get URL before HTTP\_REFERER URL, like which URL user visited before he got to that last page from which I'm getting HTTP\_REFERER in Observer when clicking on button.

Question is: How to get previous URL before HTTP\_REFERER?

Thank you ;)