#2020 - Switch to UriComponentsBuilder.fromUri(…).

This commit is contained in:
Oliver Drotbohm
2023-07-13 19:37:45 +02:00
parent 4bbfc0fd57
commit df9ea168ca

View File

@@ -289,7 +289,7 @@ public class WebFluxLinkBuilder extends TemplateVariableAwareLinkBuilderSupport<
ServerHttpRequest request = exchange.getRequest();
PathContainer contextPath = request.getPath().contextPath();
result.builder = UriComponentsBuilder.fromHttpRequest(request) //
result.builder = UriComponentsBuilder.fromUri(request.getURI()) //
.replacePath(contextPath.toString()) //
.replaceQuery("");