I have Spring Boot 2.0 thyemeleaf/spring reactor based web app. I have this code in controller:
Mono.just("redirect:/error/404"); Which is run if bad user enters invalid query string params. The redirect works fine but the URL changes to:
/error/404 instead of keeping the original user entered URL like this
/home?gp=badvalue How to do redirect while keeping the original URL in the browser address bar?
Note that this web app will run in embedded servlet container (in this case Netty).