Wednesday, April 25, 2012

how to get referrer from a redirected url

I have an url

which redirects to .

How do I get the referrer (i.e in my action for ?

One option was to add the referring domain as a parameter . .

Is there a way to get the referrer without passing old referrer as a parameter. Like we would get from **request.referrer**. request.referrer doesn't seem to work with redirected urls.

I am using Ruby on Rails for my development.

No comments:

Post a Comment