+ Start a Discussion
CloudComputingSFDCCloudComputingSFDC 

Redirection issue.

HI,

- There is relation parent object serial number and entitlement (one as to many).
- when you go to detail page of the serial number it shows entitlement related list.
- This related list is replaced with VF page to show filtered entitlements.
- now when i go to serial number detail page it shows me entitlements correctly but issues is when i click link of the entitlment
   it opens in VF page only (in a small section) and it dosent go to parent serial number and refresh the whole page. 
   This embadeded VF page dosent recognize it's parent.

Please suggest ASAP.Also put your email address there in the post for future communication.
Thanks in advance for your reply 

Thanks.





AshwaniAshwani
I am in doubt if you could achieve it. As you are using inline visulforce page so there you can use javascript to reload the parent but there is a situation, browser cross origin policy can prevent you to accessing the parent frame (cross origin policy). Visualforce  url is like: https://na11.visual.force.com/mypage and standard detail page url is https://na11.salesforce.com/001/e. So both are different url.

you can try this:

Redirect from controller side by setting setRedirect(true) and in commanlinkbutton set target to _top.

Hope this helps.