We added a new custom authentication provider (saml2) and needed to customize our logout url based on what someone logged in with.

Credit to Velizar Bishurov for the answer