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

This commit is contained in:
Oliver Drotbohm
2023-07-13 19:37:45 +02:00
parent 5f588b4415
commit 36048f2edd

View File

@@ -288,7 +288,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("");