Include location.search and location.hash in URL for replaceState
This commit is contained in:
parent
ac584d6b08
commit
7f529ef0f7
|
@ -149,6 +149,9 @@ class @MergeRequest
|
|||
unless action == 'notes'
|
||||
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
|
||||
# Turbolinks' history.
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue