Skip to content

Commit

Permalink
fix regression to navigate back to welcome step
Browse files Browse the repository at this point in the history
  • Loading branch information
danslo committed Feb 2, 2018
1 parent be3df25 commit b60f0fd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/view/frontend/web/js/mixin/navigator-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,16 @@ define([

/**
* Backported handleHash from 2.2 to pass element in element.navigate call.
* No changes were made.
*/
target.handleHash = function () {
var hashString = window.location.hash.replace('#', ''),
isRequestedStepVisible;

if (hashString === '') {
if (!customer.isLoggedIn()) {
target.navigateTo('email');
}
target.navigateTo(quote.isVirtual() ? 'payment' : 'shipping');
return false;
}

Expand Down

0 comments on commit b60f0fd

Please sign in to comment.