rails/turbolinks — pull request #40 by davydotcom (2012-09-28 13:11:06+00:00)
Title: Server Side overrides to handle redirects and referers...#22 #37 #27

Added Request Header: X-Push-State-Referer
Added Response Header: X-Push-State-Location

Js modified to handle these attributes...does a window.history.replaceState upon detection of X-Push-State-Location

Ajax Request now always sends X-Push-State-Referer and redirect_to :back catches this.