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([
183183 } ,
184184
185185 /**
186- * Sets window location.
186+ * Sets window location hash .
187187 *
188- * @param {String } code
188+ * @param {String } hash
189189 */
190- setLocation : function ( code ) {
191- window . location = window . checkoutConfig . checkoutUrl + '#' + code ;
190+ setHash : function ( hash ) {
191+ window . location . hash = hash ;
192192 } ,
193193
194194 /**
@@ -208,7 +208,7 @@ define([
208208 if ( steps ( ) . length > activeIndex + 1 ) {
209209 code = steps ( ) [ activeIndex + 1 ] . code ;
210210 steps ( ) [ activeIndex + 1 ] . isVisible ( true ) ;
211- this . setLocation ( code ) ;
211+ this . setHash ( code ) ;
212212 document . body . scrollTop = document . documentElement . scrollTop = 0 ;
213213 }
214214 }
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ define([
2828 $ ( window ) . hashchange ( _ . bind ( stepNavigator . handleHash , stepNavigator ) ) ;
2929
3030 if ( ! window . location . hash ) {
31- stepNavigator . setLocation ( stepNavigator . steps ( ) . sort ( stepNavigator . sortItems ) [ 0 ] . code ) ;
31+ stepNavigator . setHash ( stepNavigator . steps ( ) . sort ( stepNavigator . sortItems ) [ 0 ] . code ) ;
3232 }
3333
3434 stepNavigator . handleHash ( ) ;
You can’t perform that action at this time.
0 commit comments