Merge branch 'rs-merge-request-tabs-the-third' into 'master'

Include location.search and location.hash in URL for replaceState

Forgot these 😊

See merge request !740
This commit is contained in:
Dmitriy Zaporozhets 2015-05-29 10:23:33 +00:00
commit aa97325dea
1 changed files with 3 additions and 0 deletions

View File

@ -148,6 +148,9 @@ class @MergeRequest
unless action == 'notes' unless action == 'notes'
new_state += "/#{action}" new_state += "/#{action}"
# Ensure parameters and hash come along for the ride
new_state += location.search + location.hash
# Replace the current history state with the new one without breaking # Replace the current history state with the new one without breaking
# Turbolinks' history. # Turbolinks' history.
# #