User should redirect to common login page after log out
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2024 08:00 AM
Hi Experts
I have a requirement regarding portal routing that I need some help.
The requirement is as follows:
If a user belongs to Company "ABC," they should be routed to the Service Portal (SP).
If a user belongs to Company "XYZ," they should be routed to the Customer Service Management (CSM) Portal.
if user logged out then they should redirected to common login page
I have made changes to SPEntryPage script include where I set 'this.portal = "/sp/";' in initialize function. and write a following code in getFirstPageURL function.
if (user.hasRole("admin") && !redirectURL && !isServicePortalURL)
return;
To redirect them on common login page i have made changes to System Definition - Installation Exits - logout
i have set hard code value it is working fine with normal user but when a contact log out then they redirected to csm login page