function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
GoToCloudGoToCloud 

customer portal user redirect

Hi Guys,


I have requirement to send an email alert to customer portal user. In that email, there is a link which points to a visualforce page with some parameter like record id. Once portal user logs in and browses that page, the URL  address is like below


 https://namespace.ap1.visual.force.com/apex/MYPAGE?id=a00000000000AK


My purpose is when portal user clicks on url below, the system can redirect him to that visualforce page. Because there is parameter in the URL, I can not use portal default tab when login.  

https://ap1.salesforce.com/secur/login_portal.jsp?orgId=00D90000000Kxxxxx&portalId=06090000000Hxxxxx

 

I have tried that one below

https://ap1.salesforce.com/secur/login_portal.jsp?orgId=00D90000000Kxxxxx&portalId=06090000000Hxxxx&

retURL=%2Fhttps://namespace.ap1.visual.force.com/apex/MYPAGE?id=a0K900ssss00000AK

 

But no luck.

 

Does anyone has idea for that??? thanks

 

Best Answer chosen by Admin (Salesforce Developers) 
EIE50EIE50

Hi,

 

Can you try this format and see,

 

 

https://ap1.salesforce.com/secur/login_portal.jsp?orgId=00D90000000Kxxxxx&portalId=06090000000Hxxxx&
startURL=/apex/MYPAGE?id=a0K900ssss00000AK

Thanks.

 

 

All Answers

EIE50EIE50

Hi,

 

Can you try this format and see,

 

 

https://ap1.salesforce.com/secur/login_portal.jsp?orgId=00D90000000Kxxxxx&portalId=06090000000Hxxxx&
startURL=/apex/MYPAGE?id=a0K900ssss00000AK

Thanks.

 

 

This was selected as the best answer
GoToCloudGoToCloud

Hi EIE,

 

Thank you for your help.

 

I have tried that. The result is like below

https://c.ap1.visual.force.com/apex/MYPAGE?id=a0K90000000QdOXXXX

Error is :

Page MYPAGE does not exist

 

MYPAGE is in a managed package. So once login portal, the domain will be changed to https://NameSpace.ap1.visual.force.com/apex/ instead of c.ap1.visual.force.com. That is tricky.

 

Thanks