mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 20:19:06 +00:00
Spring Boot unconditionally set useRelativeRedirects on the Tomcat Context, defaulting it to false. That overrode Tomcat's own default and forced absolute Location headers on every sendRedirect. Keep server.tomcat.use-relative-redirects a simple boolean, but default it to true so that relative Location headers are used out of the box. The property can still be set to false to opt back into absolute redirects. Smoke tests that asserted a port-qualified absolute Location are updated to the relative form, and the proxy tip in the reference documentation is qualified since the context root redirect no longer carries a scheme. Signed-off-by: Tiziano Basile <tiz.basile@gmail.com> See gh-51173