The CreatorCon Call for Content is officially open! Get started here.

Redirect a user to specific portal page if they hit specific URL

Abhishek Pidwa
Kilo Guru

Hi All,

 

I have a very specific requirement of redirecting the user (after they login) to a new SP Portal page which ends with /cia.

Use case: Currently user receives an email with link (ending with /sp/cia) which redirects them to login page (used same as current login functionality) where they get authenticated and then I want to send it to /cia. But since SPEntrypage is set to /sp or /nav_to depending on the user role (by default), I couldn't find a way to script so that it redirects to /cia whenever the user hits the URL with /sp/cia. 

Note: I don't want to redirect the user every time to /cia but only when they hit the URL (via email) with /sp/cia. 

Does anyone have any idea as to how this can be approached ? Maybe it is a simple configuration change . 

**** Use case functionality desired******

There are actually three portals /sp , /sp/cia, /cia. The reason I have added /sp/cia is because /cia has a login functionality for external users (They are assigned certain username/password and they can login without Multi-factor enabled as for internal users). 

 

But for internal users, I want them to first land on /sp/cia which will contain the internal user login (with Multi factor enabled similar to /sp login). And then once they sign in over there they should be redirected to /cia. 

Thanks.

4 REPLIES 4

Harsha M
Giga Contributor

Hi Abhishek,

To get my understanding right. You have two portals on is /sp and another one /sp/cia. When user logs in bu default you want them to land on /sp page and when they click on a link in email they should land on /sp/cia page?

Hi Santosh,

 

Thanks for the reply. You are correct. There are actually three portals /sp , /sp/cia, /cia. The reason I have added /sp/cia is because /cia has a login functionality for external users (They are assigned certain username/password and they can login without Multi-factor enabled as for internal users). 

 

But for internal users, I want them to first land on /sp/cia which will contain the internal user login (with Multi factor enabled similar to /sp login). And then once they sign in over there they should be redirected to /cia. 

 

Hope my requirement is now clear ?

If you change the login page and home page on the portal it should do the trick. 

 

Harsha M
Giga Contributor

check the settings in this page anyway it might help you.