Commit aa97325d authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

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
parents 2f3a11fe 7f529ef0
...@@ -148,6 +148,9 @@ class @MergeRequest ...@@ -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.
# #
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment