Found out what happened. I am using MS Entra ID and I tried adding logout paths to the appsettings. Removing those logout paths fixed the problem because one of the paths lead to / route.