Redirect after login to linked Portal page

cumbriacraig
Giga Contributor

Hi

We currently redirect non-roled users to the service portal after login. We use a sys property glide.entry.loggedin.page_ess and the value /ictportal.

We would like to improve on this so a user (roled or not) is redirected to where they were going before the login. For example our corporate intranet site would like to link to a servicenow catalog item

The desired behavior is: User is browsing the corporate intranet site and clicks link to go to ServiceNow "Request Staff ID Badge" catalog item. ServiceNow will present the ADFS login page (our IdProvider), the user enters their correct credentials and they are redirected to the "Request Staff ID Badge" catalog item".

Currently this fails because after login the users is taken to the portal homepage.

The solution should allow us to create a hyperlink to any destination we desire and redirect the user to that destination (providing they have permission), whether it is a catalog item, a ticket, or a knowledge article, etc.

Regards

Craig

1 ACCEPTED SOLUTION

cumbriacraig
Giga Contributor

I've got this working.


We had actually used the article that Chirag linked to, to create the redirect in the OP. But we had missed a sys property glide.entry.first.page.script.



Adding that property as per the instructions in the article has providered the desired behaviour.


View solution in original post

8 REPLIES 8

Thanks for the reply Craig! We actually ended up getting this working by accident. I believe we already had the system properties set up, but we ended up finding a setting on the SP where a login page needed to be specified, and the value had been blank. Once we set the login page it suddenly started to work, go figure...



Steve


Hi Steve,

 

That's awesome that you got this working, can you go into any detail on your modifications here. We'd like to do a similar task with the redirect, but we want it to return to the Knowledge article that the user specifically wanted to view, before the login page appeared.

 

Thanks in advance to you or anyone that can help.

Hi Cumbriacraig,

That's awesome that you got this working, can you go into any detail on your modifications here. We'd like to do a similar task with the redirect, but we want it to return to the Knowledge article that the user specifically wanted to view, before the login page appeared.

 

Thanks in advance to you or anyone that can help.

 

Hi, 

I'm sorry I don't remember the details and I have moved away from this project team and no longer have admin to the instance to check for you. 

 

Hopefully someone else can comment. 

Regards