File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,10 +33,10 @@ var hashUrlUtils = {
33
33
window . addEventListener ( 'hashchange' , cb ) ;
34
34
} ,
35
35
pushState : function ( qs ) {
36
- window . location . assign ( this . character + qs ) ;
36
+ window . location . assign ( document . location . search + this . character + qs ) ;
37
37
} ,
38
38
replaceState : function ( qs ) {
39
- window . location . replace ( this . character + qs ) ;
39
+ window . location . replace ( document . location . search + this . character + qs ) ;
40
40
} ,
41
41
readUrl : function ( ) {
42
42
return window . location . hash . slice ( 1 ) ;
@@ -53,10 +53,10 @@ var modernUrlUtils = {
53
53
window . addEventListener ( 'popstate' , cb ) ;
54
54
} ,
55
55
pushState : function ( qs ) {
56
- window . history . pushState ( null , '' , this . character + qs ) ;
56
+ window . history . pushState ( null , '' , this . character + qs + document . location . hash ) ;
57
57
} ,
58
58
replaceState : function ( qs ) {
59
- window . history . replaceState ( null , '' , this . character + qs ) ;
59
+ window . history . replaceState ( null , '' , this . character + qs + document . location . hash ) ;
60
60
} ,
61
61
readUrl : function ( ) {
62
62
return window . location . search . slice ( 1 ) ;
You can’t perform that action at this time.
0 commit comments