Added return after 404 redirect.
This commit is contained in:
parent
340cbec043
commit
97be628999
1 changed files with 3 additions and 0 deletions
|
|
@ -46,6 +46,7 @@ const routes = [
|
|||
if (getISSCookie() !== null && !isSavedSessionStillActive()) {
|
||||
// await baseMixin.methods.dispatchStoreAction(storeActions.RESET_STATE);
|
||||
await GoToStartOn404(next);
|
||||
return null;
|
||||
}
|
||||
|
||||
// Process ISS cookie.
|
||||
|
|
@ -66,6 +67,7 @@ const routes = [
|
|||
|
||||
if (!arePagePrerequisitesValid(component)) {
|
||||
await GoToStartOn404(next);
|
||||
return null;
|
||||
}
|
||||
|
||||
return next({name: issPageToUse, query: to.query, params: to.params, state: to.state});
|
||||
|
|
@ -123,6 +125,7 @@ const routes = [
|
|||
const tempMsgCopy = 'Pre Requisites failed, need to handle. Default is Welcome Page.';
|
||||
const tempMsgHeadline = `${issPageToUse}: pre-req failed...`;
|
||||
await GoToStartOn404(next, tempMsgCopy, tempMsgHeadline);
|
||||
return null;
|
||||
}
|
||||
|
||||
// Assign current query string parameters, as well as our issPage one.
|
||||
|
|
|
|||
Loading…
Reference in a new issue