Skip to content

Commit 67ea196

Browse files
committed
Add packed ID to workflow permalink
1 parent e9880e5 commit 67ea196

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/org/commonwl/view/researchobject/ROBundleService.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,10 @@ public Bundle createBundle(Workflow workflow, GitDetails gitInfo) throws IOExcep
124124

125125
// Simplified attribution for RO bundle
126126
try {
127+
String packedId = workflow.getRetrievedFrom().getPackedId();
128+
String packedPart = (packedId != null) ? "#" + packedId : "";
127129
String id = "https://w3id.org/cwl/v/git/" + workflow.getLastCommit() +
128-
"/" + workflow.getRetrievedFrom().getPath();
130+
"/" + workflow.getRetrievedFrom().getPath() + packedPart;
129131
manifest.setId(new URI(id));
130132

131133
// Tool attribution in createdBy

0 commit comments

Comments
 (0)