When I give this URL - "https://login.microsoftonline.com/tenant-id/oauth2/v2.0/logout", It logs me out fine.
When I give the below URL, it logs me out and says "you signed out of your account" but have trouble redirecting it to the login page, instead redirects to the index page (the landing page of app)
handleLogout = () => {
window.location = 'https://login.microsoftonline.com/tenant-id/oauth2/v2.0/logout?client_id=client_id&post_logout_redirect_uri=https%3A%2F%2Flocalhost%3A44321%2F'
}
May I know why it gets redirected to index page instead of Azure AD login page after log out? Post_logout_redirect_url is same as redirect(reply) URL configured for the application. So, index URL and login URL are same but we should be presented with login page as we have signed out. Thank you.