Skip to content

Commit 4e96256

Browse files
committed
[fixed] Preserve original query with HashLocation
Fixes #636
1 parent 2f19e63 commit 4e96256

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/locations/HashLocation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ var HashLocation = {
106106

107107
replace: function (path) {
108108
_actionType = LocationActions.REPLACE;
109-
window.location.replace(window.location.pathname + '#' + Path.encode(path));
109+
window.location.replace(window.location.pathname + window.location.search + '#' + Path.encode(path));
110110
},
111111

112112
pop: function () {

0 commit comments

Comments
 (0)