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

This commit is contained in:
Oliver Drotbohm
2023-07-13 19:37:45 +02:00
parent 3e9c90d0df
commit 03d20998a2

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("");