You need to sign in to do that
Don't have an account?
sathishkumar periyasamy
PageReference not working in community
We have custom button "Close Opportunity/Create Order" on the opportunity layout. When user click that button we will redirecting to Visualforce page to create a Order Line Item and Fulfillment record. Once the transaction is completed system will be redirecting to Order Line Item. This is working for Internal user but community user are getting wired look and feel.
look like it redirected inside iframe. using below code to redirect.
look like it redirected inside iframe. using below code to redirect.
PageReference pageRef; pageRef = new PageReference('/'+orderGroup.Id); pageRef.setRedirect(true); return pageRef;Any help?
Finally found root cause of this issue
Custom button "Behavior" should be "Display in existing window without sidebar or header"
All Answers
Use below code
Looks like that it is not using Site URL.
Let me know if this helps :)
Thanks
Finally found root cause of this issue
Custom button "Behavior" should be "Display in existing window without sidebar or header"