resolveUrlPath in ResourceUrlEncodingRequestWrapper in ResourceUrlEncodingFilter checks for query string, but not for fragment. This breaks versioning when URLs with fragment are used (tested with Thymeleaf):
does not add version. Replacing getQueryParamsIndex with something that checks for both question mark and hash mark fixes it.
#17956 ResourceUrlProvider should only consider paths and not request parameters