Logout fails with 400 bad request

Please don’t post the same thing in multiple threads. It just creates more work for us. I already suggested an answer in another post: Logout 400 Bad Request (Logout URI already defined)