diff --git a/src/global-methods.js b/src/global-methods.js index c85b0079..ba2b2b20 100644 --- a/src/global-methods.js +++ b/src/global-methods.js @@ -127,7 +127,7 @@ export default { else { console.error("Fatal - Unable to bailout on the entry page or bailout page."); // Redirect to a generic static error page on fatal error on entry and bailout page. - window.top.location = '/static/error'; + window.top.location = '/static/error/index.html'; } } } diff --git a/src/router/index.js b/src/router/index.js index 75dbf883..21610a90 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -88,7 +88,7 @@ const routes = [ routeData = await GetRouteInfoFromPageName(issPageToUse); } catch ( error ) { - window.top.location = '/static/error'; + window.top.location = '/static/error/index.html'; } if (routeData[0].name.toLowerCase() === 'error') { @@ -123,6 +123,11 @@ const routes = [ }); return null; } + }, + { + name: "error", + path: "/virtual/error", + virtual: true, } ];