#1154 - WebFlux Link creation starts with clean query parameters.

We now explicitly remove all query parameters from the base URI we use when creating links from method names.
This commit is contained in:
Oliver Drotbohm
2019-12-09 15:54:54 +01:00
parent 26c44dcc98
commit 8f1f355c9f
2 changed files with 15 additions and 1 deletions

View File

@@ -255,7 +255,8 @@ public class WebFluxLinkBuilder extends TemplateVariableAwareLinkBuilderSupport<
PathContainer contextPath = request.getPath().contextPath();
return UriComponentsBuilder.fromHttpRequest(request) //
.replacePath(contextPath.toString());
.replacePath(contextPath.toString()) //
.replaceQuery("");
}
private static Mono<WebFluxLinkBuilder> linkToInternal(Object invocation) {