diff --git a/jsonld.php b/jsonld.php index d790814..cf92ee3 100644 --- a/jsonld.php +++ b/jsonld.php @@ -1,7 +1,7 @@ 0 && count($iri_segments) > 0) { + $last = (isset($rel['query']) || isset($rel['fragment'])) ? 0 : 1; + while(count($base_segments) > 0 && count($iri_segments) > $last) { if($base_segments[0] !== $iri_segments[0]) { break; }