Keycloak 18 and admin console logout

I just upgraded to 18 and when I try to logout of the admin console, I’m getting invalid parameter redirect_uri. I know this was deprecated by default in 18, but I can’t figure out how to get this to use RP-based logout protocol. The URL seems to be generated from this in the keycloak-admin-client.js:

kc.createLogoutUrl = function(options) {
var url = kc.endpoints.logout() + “?redirect_uri=” + encodeURIComponent(adapter.redirectUri(options, false));
return url;
};

I’ve done some customization of the theme content so I’m not sure if I’ve somehow created this problem. Admin2 is enabled.