Custom redirection for mashup errors

You can use custom redirection logic for mashup errors such as System_Timeout, sessionTimeout, and CSRF Token validation failed, instead of the default login page.

Procedure

  1. Locate /extensions/override-static-assets/root-config/custom/extension-config.json and set the useCustomLoginRedirect parameter to true.
    {
      "useCustomLoginRedirect": true
    }
     
  2. Extend the nav-bar. To add this extension, see Customizing navigation bar through override extensibility.
  3. Inside the ngOnInit method of the extended app.component.ts, add an event listener for the isf:customLoginRedirect event and implement your custom redirection logic.
    window.addEventListener('isf:customLoginRedirect', () => {
      // your custom redirect logic here
    });
     
  4. Start the application and verify the changes by running
    yarn start-app