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.
2 parents 3797563 + 68aa214 commit b2baaceCopy full SHA for b2baace
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