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
-
Locate /extensions/override-static-assets/root-config/custom/extension-config.json and set the useCustomLoginRedirect parameter to true.
{
"useCustomLoginRedirect": true
}
-
Extend the nav-bar. To add this extension, see Customizing navigation bar through override extensibility.
-
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
});
-
Start the application and verify the changes by running