Skip to content

Commit

Permalink
Fix to handle multiple # in vocab URIs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Hale committed Nov 10, 2021
1 parent 3ea6c18 commit 00cf7cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions model/VocabularyConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -536,10 +536,10 @@ public function getDefaultSidebarView()
public function getId()
{
$uriparts = explode("#", $this->resource->getURI());
if (count($uriparts) != 1)
if (count($uriparts) > 1)
// hash namespace
{
return $uriparts[1];
return $uriparts[count($uriparts) - 1];
}

// slash namespace
Expand Down

0 comments on commit 00cf7cc

Please sign in to comment.