Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can i get the url from history.go(-2)

Tags:

javascript

I have a question, is it possible to get the url from the history.go(-2)? Assuming i don't know that url.

edit

I need the url, because I want to check where the visitor was redirected from. there are two cases: 1 facebook, 2 directly on the website. the second step is an automatic user check. the third step is miscoded, but if I go back to step 1. I can bypass the error. with everything working fine. the problem is that I don't know where to redirect (being two forwarders).

like image 996
sebastian Avatar asked Dec 07 '22 01:12

sebastian


1 Answers

It is not, by design, for privacy reasons.

like image 121
Edgar Bonet Avatar answered Dec 18 '22 02:12

Edgar Bonet