Corrects the behavior of url_for (and link_to, which uses url_for) with the
:back option by using the X-XHR-Referer request header instead of the
standard Referer request header.
Public Class Methods
included(base)click to toggle source
# File lib/turbolinks/xhr_url_for.rb, line 6defself.included(base)
base.alias_method_chain:url_for, :xhr_refererend
Public Instance Methods
url_for_with_xhr_referer(options = {})click to toggle source