We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3797563 commit 4e9e488Copy full SHA for 4e9e488
app/code/Magento/Customer/view/frontend/web/js/action/login.js
@@ -38,10 +38,10 @@ define([
38
});
39
customerData.invalidate(['customer']);
40
41
- if (redirectUrl) {
42
- window.location.href = redirectUrl;
43
- } else if (response.redirectUrl) {
+ if (response.redirectUrl) {
44
window.location.href = response.redirectUrl;
+ } else if (redirectUrl) {
+ window.location.href = redirectUrl;
45
} else {
46
location.reload();
47
}
0 commit comments