diff --git a/src/router/index.js b/src/router/index.js index c2245b4e..0c33cae4 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -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.