Skip to content

Commit 00cf7cc

Browse files
author
Mark Hale
committed
Fix to handle multiple # in vocab URIs.
1 parent 3ea6c18 commit 00cf7cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

model/VocabularyConfig.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -536,10 +536,10 @@ public function getDefaultSidebarView()
536536
public function getId()
537537
{
538538
$uriparts = explode("#", $this->resource->getURI());
539-
if (count($uriparts) != 1)
539+
if (count($uriparts) > 1)
540540
// hash namespace
541541
{
542-
return $uriparts[1];
542+
return $uriparts[count($uriparts) - 1];
543543
}
544544

545545
// slash namespace

0 commit comments

Comments
 (0)