-
Couldn't load subscription status.
- Fork 38.8k
Closed
Closed
Copy link
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: enhancementA general enhancementA general enhancement
Milestone
Description
Ondřej Kraus opened SPR-17535 and commented
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):
th:src="@{/assets/images/icons/sprite.svg#face1}"
does not add version. Replacing getQueryParamsIndex with something that checks for both question mark and hash mark fixes it.
Affects: 5.1.2
Issue Links:
- ResourceUrlProvider should only consider paths and not request parameters [SPR-13374] #17956 ResourceUrlProvider should only consider paths and not request parameters
Referenced from: pull request #2025, and commits 959cf61, 029101c
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: enhancementA general enhancementA general enhancement