Skip to content

Logout redirects to /login?logout #113

@Busata

Description

@Busata

I was following this guide, but my front-end project is separated from the spring boot project. After the first part, completing the angular login form & logout, logging out makes spring redirect you to a /login?logout page. Since he'll search for this path on the server, you get a 404 on the front end.

I found the solution for this to define a custom logoutsuccesshandler with HttpStatusReturningLogoutSuccessHandler as handler. Perhaps this is handy to mention in the tutorial itself to spare (poor! poor!) users like myself to scroll up & down to double check everything..

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions