Redirect to custom login page for frontend logout

Hi,
I am using the FrontEnd Sample (jmix-samples-2/react-frontend-sample at main · jmix-framework/jmix-samples-2 · GitHub) and configured the custom login in the spring application configuration as below:

# Login page configuration
jmix.authserver.login-page-view-name=custom-as-login.html
jmix.authserver.login-page-url=/as-login

but when i logout in React Js, it routes me to the default login page. I want to route to my custom login page, when i logout from my react frontend.

I configured the LogoutRedirect, but it doesn’t routes me to the custom login page, when i logout.

logoutRedirect: “http://localhost:8080/as-login

Authetication configuration shown below:

const authConfig: TAuthConfig = {
  clientId: "zhfkegazct",
  authorizationEndpoint: "http://localhost:8080/oauth2/authorize",
  tokenEndpoint: "http://localhost:8080/oauth2/token",
  redirectUri: "http://localhost:1420",
  logoutEndpoint: "http://localhost:8080/logout",
  logoutRedirect: "http://localhost:8080/as-login",
  decodeToken: false,
  onRefreshTokenExpire: (event: TRefreshTokenExpiredEvent) =>
    window.confirm(
      "Session expired. Refresh page to continue using the site?"
    ) && event.logIn(),
};

Please help, thanks & regards.

Hi,
Is it possible to have any solution for this scenario? We are facing issue, i.e., after logout, it routes to the default login page, then again the user tries to login, it is moved to the vaadin page instead of react page.