You need to sign in to do that
Don't have an account?
krishna p 28
Page not redirecting in communities
HI,
For a guest user, in community portal, page is not redirecting to next page. These are custom pages for which I have custom controllers. In salesforce pages are redirecting well and functionality is working fine. But in portal, on button click the same page is reloaded without any action.
below is th ecode I am using ot redirect to next page,
pageReference pageref = new pageReference(siteUrl+sitePrefix+'/Custom_Page'+'?param='+id);
what might be the reason?
Regards,
Krishna
For a guest user, in community portal, page is not redirecting to next page. These are custom pages for which I have custom controllers. In salesforce pages are redirecting well and functionality is working fine. But in portal, on button click the same page is reloaded without any action.
below is th ecode I am using ot redirect to next page,
pageReference pageref = new pageReference(siteUrl+sitePrefix+'/Custom_Page'+'?param='+id);
what might be the reason?
Regards,
Krishna
pageReference pageref = new pageReference('CommunityName/apex/Custom_Page'+'?param='+id);
Please let us know if this will help you
Thanks for the reply.
siteurl = Site.getBaseSecureUrl();
sitePrefix = Site.getPathPrefix();
I have implemented in controller.