From b60f0fd5ed93ea0350faea7ad9b2e2daf7d80762 Mon Sep 17 00:00:00 2001 From: Daniel Sloof Date: Fri, 2 Feb 2018 17:56:37 +0100 Subject: [PATCH] fix regression to navigate back to welcome step --- src/view/frontend/web/js/mixin/navigator-mixin.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/view/frontend/web/js/mixin/navigator-mixin.js b/src/view/frontend/web/js/mixin/navigator-mixin.js index 0112ff5..f0414a1 100644 --- a/src/view/frontend/web/js/mixin/navigator-mixin.js +++ b/src/view/frontend/web/js/mixin/navigator-mixin.js @@ -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; }