remove appending proxy context path to the relative URL
@@ -216,6 +216,7 @@ public class DefaultServiceURLBuilder implements ServiceURLBuilder {
if (port != IdentityCoreConstants.DEFAULT_HTTPS_PORT) {
absoluteUrl.append(":").append(port);
}
+ appendContextToUri(absoluteUrl, proxyContextPath);
absoluteUrl.append(fetchRelativeUrl());
return absoluteUrl.toString();
}
@@ -223,7 +224,6 @@ public class DefaultServiceURLBuilder implements ServiceURLBuilder {
private String fetchRelativeUrl() throws URLBuilderException {
StringBuilder relativeUrl = new StringBuilder();
- appendContextToUri(relativeUrl, proxyContextPath);
appendContextToUri(relativeUrl, urlPath);
String resolvedParamsString = getResolvedParamString(parameters);
appendParamsToUri(relativeUrl, resolvedParamsString, "?");
