Fix redirecting issue in APPM Store

merge-requests/194/head
Jayasanka 5 years ago
parent a3b796d749
commit 3761d58cda

@ -63,7 +63,7 @@ class DetailedRating extends React.Component{
}).catch(function (error) { }).catch(function (error) {
if (error.response.status === 401) { if (error.response.status === 401) {
window.location.href = window.location.origin+'/publisher/login'; window.location.href = window.location.origin+'/store/login';
} }
}); });
}; };

@ -57,7 +57,7 @@ class Dashboard extends React.Component {
}).catch((error) => { }).catch((error) => {
if (error.hasOwnProperty("response") && error.response.status === 401) { if (error.hasOwnProperty("response") && error.response.status === 401) {
window.location.href = window.location.origin + '/publisher/login'; window.location.href = window.location.origin + '/store/login';
} else { } else {
notification["error"]({ notification["error"]({
message: "There was a problem", message: "There was a problem",

Loading…
Cancel
Save