UrlHandlerFilter should not strip the trailing slash from root URLs #33444
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Affects:
6.2.0-M7
Issue #31366 added the new
UrlHandlerFilter
. That filter should handle root URLs differently by default and not strip the trailing slash from a root URL. It seem reasonable to have a blanketUrlHandlerFilter
such as the following in your Spring application:For example, a URL such as
http://example.com/
is invalid without a trailing slash and browsers (or CURL) do in fact send a trailing slash if you do not specify it for root URLs.See also: https://webmasters.stackexchange.com/questions/35643/is-trailing-slash-automagically-added-on-click-of-home-page-url-in-browser
The text was updated successfully, but these errors were encountered: