summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-05-29 05:15:09 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-05-29 05:15:09 -0400
commit7f529ef0f7541c1063388f6fad337a0ad628cc99 (patch)
tree1babb0c925fc4ec936e41bd684df8ee757eb9885
parentac584d6b086691ad6b496c082a80bc78b8f08a22 (diff)
downloadgitlab-ce-7f529ef0f7541c1063388f6fad337a0ad628cc99.tar.gz
Include location.search and location.hash in URL for replaceState
-rw-r--r--app/assets/javascripts/merge_request.js.coffee3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/assets/javascripts/merge_request.js.coffee b/app/assets/javascripts/merge_request.js.coffee
index a5a2caf1263..b82f4c8b80e 100644
--- a/app/assets/javascripts/merge_request.js.coffee
+++ b/app/assets/javascripts/merge_request.js.coffee
@@ -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.
#