Describe the bug GET request to http://localhost:8080/path/logout provides a confirmation page. After confirming the logout there is a post request to the root path resulting in a 404 error.

To Reproduce take the hello-security project: https://docs.spring.io/spring-security/reference/reactive/getting-started.html and add to the application.properties: spring.webflux.base-path=/path

Expected behavior after confirming the logout a POST request is expected for: http://localhost:8080/path/logout instead we see a POST to: http://localhost:8080/logout

Sample https://start.spring.io/starter.zip?type=maven-project&language=java&packaging=jar&jvmVersion=1.8&groupId=example&artifactId=hello-security&name=hello-security&description=Hello%20Security&packageName=example.hello-security&dependencies=webflux,security

Comment From: vanwobe

This is not an enhancement but really a bug. The logout is defective in case a context path is used.