In my company we set an SSO for salesforce, works good Yet - when user clicks a link he is always being directed to the Home page (or his default tab) if he is not already connected to SF.

Can you please suggest a way how to implement it properly?

  • If you're using AD FS, also check out my Q&A for various things that tripped me up during implementation.
    – sfdcfox
    Commented Mar 5, 2017 at 1:46

1 Answer 1


The most comprehensive documentation is going to be the Single Sign On Implementation Guide.

From your description it sounds like your IdP is not passing the RelayState parameter back through correctly during the redirects that happen during the SSO process. This parameter contains the URL that the user initially requested before they were sent to the IdP for authentication.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .