mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fix redirecting issue in APPM Store
This commit is contained in:
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…
Reference in New Issue
Block a user