Skip to content

Commit 1f69623

Browse files
committed
Add missing slashes to visualisation permalink
1 parent a90cbdd commit 1f69623

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,13 @@ public Bundle createBundle(Workflow workflow, GitDetails gitInfo) throws IOExcep
164164
File png = graphVizService.getGraph(workflow.getID() + ".png", workflow.getVisualisationDot(), "png");
165165
Files.copy(png.toPath(), bundleRoot.resolve("visualisation.png"));
166166
PathMetadata pngAggr = bundle.getManifest().getAggregation(bundleRoot.resolve("visualisation.png"));
167-
pngAggr.setRetrievedFrom(new URI("https://w3id.org/cwl/v/git" + workflow.getLastCommit()
167+
pngAggr.setRetrievedFrom(new URI("https://w3id.org/cwl/v/git/" + workflow.getLastCommit()
168168
+ "/" + workflow.getRetrievedFrom().getPath() + "?format=png"));
169169

170170
File svg = graphVizService.getGraph(workflow.getID() + ".svg", workflow.getVisualisationDot(), "svg");
171171
Files.copy(svg.toPath(), bundleRoot.resolve("visualisation.svg"));
172172
PathMetadata svgAggr = bundle.getManifest().getAggregation(bundleRoot.resolve("visualisation.svg"));
173-
svgAggr.setRetrievedFrom(new URI("https://w3id.org/cwl/v/git" + workflow.getLastCommit()
173+
svgAggr.setRetrievedFrom(new URI("https://w3id.org/cwl/v/git/" + workflow.getLastCommit()
174174
+ "/" + workflow.getRetrievedFrom().getPath() + "?format=svg"));
175175

176176
// Add annotation files

0 commit comments

Comments
 (0)