What does this code means? ScriptInclude "CMSEntryPage"

Asami
Tera Contributor

The property "glide.entry.page.script" has value as "new CMSEntryPage().getEntryPage()"

I checked the script include "CMSEntryPage". But it has a code which I am not able to understand.

what does this code means?

 

<CMSEntryPage>

var CMSEntryPage = Class.create();

CMSEntryPage.prototype = {
  initialize : function() {
  },

  getEntryPage : function() {
    var config = GlideContentConfig.get();
    if (!config.getLoginPage())
        return null;

    return new GlideCMSPageLink().getPageLink(config.getLoginPage());
  }
}
1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

That script include is used to determine where user has to be redirected once user logins to the instance.

more details below

How to configure redirection for Service Portal

https://serviceportal.io/docs/documentation/sso_configuration.md

6 ways to set up your Service Portal for redirection SUCCESS!

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

5 REPLIES 5

Saurabh Gaikwad
Mega Expert

Hello Asami,

I know the little bit thing about this , having user with impersonator role, when it logs in it is getting redirected to service portal.(auto-redirect). it means when your log in then it will get auto redirect to service portal.

 

mark ???? Helpful if applicable 

Regards,

Saurabh,