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

This commit is contained in:
Robert Speicher 2015-05-29 05:15:09 -04:00
parent ac584d6b08
commit 7f529ef0f7
1 changed files with 3 additions and 0 deletions

View File

@ -149,6 +149,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.
# #