Looks like you return parameter : return=https%3A%2%2Fmydoman.com%2FShibboleth.sso%2FLogin%3FSAMLDS%3D1%26target%3Dss.... is wrong. Spot the %2 at the start in https%3A%2%2F