after SSO login not redirected to employee center page specified

XuanYingY
Tera Contributor

It works if you go through login.do > login_with_sso.do

but it doesn't work if you refresh with a specific page after logged out e.g (/now/nav/ui/home) and idP login prompt. It will return the the specific page instead of (/esc)

 

the changes i made as suggested from what i see online:

glide.entry.first.page.script = SPEntryPage().getFirstPageURL()

 

set session property starting_page to esc and nav_to to esc

 

 

getFirstPageURL: function() {
        var session = gs.getSession();
        this.logProperties('before', session);

        // has roles and is not a Service Portal page - go to UI16
		session.putProperty("starting_page", "/esc");
		session.putProperty("nav_to", "/esc");

 

commented out as all users regardless of roles should be redirected

 

// if (user.hasRoles() && !redirectURL && !isServicePortalURL)
        //     return;

 

1 REPLY 1

Jordan Vignoni
Tera Guru

In the Identity Provider, are you able to set the ServiceNow Homepage field to the desired destination?  For example, https://instance_name.service-now.com/esc