rubnig commented on code in PR #71:
URL:
https://github.com/apache/sling-org-apache-sling-api/pull/71#discussion_r2613690197
##########
src/main/java/org/apache/sling/api/uri/SlingUriBuilder.java:
##########
@@ -227,8 +227,8 @@ public static SlingUriBuilder createFrom(@NotNull URI uri,
@Nullable ResourceRes
String path = uri.getRawPath();
boolean pathExists = isNotBlank(path);
String uriQuery = uri.getRawQuery();
- boolean schemeSpecificRelevant = !pathExists && uriQuery == null;
String uriHost = uri.getHost();
+ boolean schemeSpecificRelevant = !pathExists && uriQuery == null &&
uriHost == null;
Review Comment:
And I guess you want to also resolve `//sling.apache.org` to
`//sling.apache.org` so using opaque won't work.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]