Files
spring-boot/module
Tiziano Basile f119e58767 Default use-relative-redirects to true
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
2026-09-07 08:50:09 +01:00
..
2026-09-07 08:27:14 +01:00
2026-09-07 08:27:14 +01:00
2026-07-16 15:39:30 +02:00
2026-08-25 09:14:57 +02:00
2026-05-14 15:03:44 +01:00
2026-09-04 10:07:51 +01:00
2026-09-07 08:27:14 +01:00
2026-07-15 20:19:19 +02:00
2026-08-25 08:45:47 +02:00
2026-07-15 20:19:19 +02:00
2026-07-15 20:19:19 +02:00
2026-09-07 08:27:14 +01:00
2026-09-04 16:20:05 +01:00
2026-09-07 08:27:14 +01:00
2026-09-07 08:27:14 +01:00