I am facing weird problem on one of customers org. The inline VF page is not working on one specific org when we use SSO to login on that org. If we use normal login then it works fine.
When we login with SFDC user name password the url is something like: https://xxxxxxx--dev1.cs21.my.salesforce.com (lets call it A url)
When we login with service provider initiated SSO the url is like this: https://yyyyyyyydev1crm.zzzzzdev.aaaaaa.net (lets call it B url)
Here are my findings till now: When user login with B url his inline VF page does not load properly.
The inline VF page is added on cases standard page.
When we checked the network traffic it showed that request for inline VF page is is redirected to SSO end point for authorization. After authorization it redirect to home page. As result user see home page instead of inline VF page. So my guess is its loosing the retURL in this redirect. But I am not sure.
My Question is: how to fix this issue?