In case of SAML SSO setup, make sure that the ACS URL specified in your IdP admin console for the Freshservice app is the vanity / custom URL and not the default Freshservice URL. For simple SSO setup, make sure the "sReturnURL" specified in the Constant.asp file is the custom URL.

Simple SSO setup - Constants.asp file