File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
app/code/Magento/Checkout/view/frontend/web/js Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -183,12 +183,12 @@ define([
183
183
} ,
184
184
185
185
/**
186
- * Sets window location.
186
+ * Sets window location hash .
187
187
*
188
- * @param {String } code
188
+ * @param {String } hash
189
189
*/
190
- setLocation : function ( code ) {
191
- window . location = window . checkoutConfig . checkoutUrl + '#' + code ;
190
+ setHash : function ( hash ) {
191
+ window . location . hash = hash ;
192
192
} ,
193
193
194
194
/**
@@ -208,7 +208,7 @@ define([
208
208
if ( steps ( ) . length > activeIndex + 1 ) {
209
209
code = steps ( ) [ activeIndex + 1 ] . code ;
210
210
steps ( ) [ activeIndex + 1 ] . isVisible ( true ) ;
211
- this . setLocation ( code ) ;
211
+ this . setHash ( code ) ;
212
212
document . body . scrollTop = document . documentElement . scrollTop = 0 ;
213
213
}
214
214
}
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ define([
28
28
$ ( window ) . hashchange ( _ . bind ( stepNavigator . handleHash , stepNavigator ) ) ;
29
29
30
30
if ( ! window . location . hash ) {
31
- stepNavigator . setLocation ( stepNavigator . steps ( ) . sort ( stepNavigator . sortItems ) [ 0 ] . code ) ;
31
+ stepNavigator . setHash ( stepNavigator . steps ( ) . sort ( stepNavigator . sortItems ) [ 0 ] . code ) ;
32
32
}
33
33
34
34
stepNavigator . handleHash ( ) ;
You can’t perform that action at this time.
0 commit comments