-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement
Milestone
Description
Matching URLs with a trailing slash was deprecated in 6.0 in favor of early handling via proxy or Filter
like UrlRewriteFilter, see #28552 for details. The continued feedback on the issue, however, makes it clear we need to go further and provide built-in support.
This can be a Filter
ordered as early as possible, e.g. ahead of security, that handles URLs with a trailing slash. One option is a permanent redirect, and another is to rewrite the request like UrlRewriteFilter
. This can be configurable by URL pattern or for all requests. Another suggestion from #28552 (comment) is to log URLs with a trailing slash in order to discover and phase them out.
OrangeDog, wizzardo, Gautham-Rokkam-Infrrd, thaarbach, chillb0nes and 10 moreIllutaxsaugion, samuel-bach, berse2212, kiturutin, astoiakin-wise and 19 morebennypi and maxedenharter0507
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement