Skip to content

Commit

Permalink
Support UUID with URL special characters / Fix regex to retrieve UUID…
Browse files Browse the repository at this point in the history
… when using advanced view.
  • Loading branch information
fxprunayre committed Jun 11, 2021
1 parent a561bd7 commit d1fe50d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@

this.getUuid = function() {
if (this.isMdView()) {
return $location.path().replace(/\/metadata\/(.*)($|\/formatters.*)/, '$1');
return $location.path()
.split('/formatters')[0]
.replace(/\/metadata\/(.*)/, '$1');
}
};

Expand Down

0 comments on commit d1fe50d

Please sign in to comment.