8000 Set X-XHR-Redirect header · turbolinks/turbolinks-rails@56cf714 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Sep 25, 2021. It is now read-only.

Commit 56cf714

Browse files
committed
Set X-XHR-Redirect header
1 parent 6a45fca commit 56cf714

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/turbolinks/redirection.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def visit_location_with_turbolinks(location, action)
3333
self.status = 200
3434
self.response_body = script.join("\n")
3535
response.content_type = "text/javascript"
36+
response.headers["X-Xhr-Redirect"] = location
3637
end
3738

3839
def store_turbolinks_location_in_session(location)

0 commit comments

Comments
 (0)
0