You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 66012db
Browse filesBrowse the repository at this point in the historyBrowse files
// URI#resolve drops base scheme for opaque URIs, https://github.com/jsonld-java/jsonld-java/issues/232
// Drop the last segment, see https://tools.ietf.org/html/rfc3986#section-5.2.3 (2nd bullet point)
// "a base URI [...] does not allow a fragment" (https://tools.ietf.org/html/rfc3986#section-4.3)
272
+
uri = newURI(uri.getScheme(), uri.getAuthority(), uri.getPath(), uri.getQuery(), null);
264
273
// query string parsing
265
274
if (pathToResolve.startsWith("?")) {
266
-
// drop fragment from uri if it has one
267
-
if (uri.getFragment() != null) {
268
-
uri = newURI(uri.getScheme(), uri.getAuthority(), uri.getPath(), null, null);
269
-
}
270
-
// add query to the end manually (as URI.resolve does it wrong)
275
+
// drop query, https://tools.ietf.org/html/rfc3986#section-5.2.2: T.query = R.query;
276
+
uri = newURI(uri.getScheme(), uri.getAuthority(), uri.getPath(), null, null);
277
+
// add query to the end manually (as URI#resolve does it wrong)
278
+
returnuri.toString() + pathToResolve;
279
+
} elseif (pathToResolve.startsWith("#")) {
280
+
// add fragment to the end manually (as URI#resolve does it wrong)
0 commit comments