Redirect_to header: how to access location?


#1

Hi,

If my controller sends a redirect_to as a response, where in the
response header is the Location? I would like to access this location
with JavaScript but don’t know how to access it. I can’t find any docs
on how Rails sets up these headers.

Thanks,
Peter