I have created a ruby on rails application. I am having below scenario
In localhost for getting referrer link i'm using request.env["HTTP_REFERER"]
it's working perfectly not giving null.
I have uploaded the code in heroku , but request.env["HTTP_REFERER"]
is giving nil
, i have checked in heroku logs.
Please provide a suggestion why it's giving nil
? is there any way to get referrer link other than request.env["HTTP_REFERER"]
?
request.env["HTTP_REFERER"]
giving nil
is acceptable when directly navigating to a page, I suggest to use link_to :back
instead or specify where it should go back (link_to root_path
).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With