File tree Expand file tree Collapse file tree 2 files changed +182
-89
lines changed
src/main/java/org/commonwl/view/workflow Expand file tree Collapse file tree 2 files changed +182
-89
lines changed Original file line number Diff line number Diff line change @@ -211,20 +211,20 @@ public void setGitRepoPath(String gitRepoPath) {
211
211
// Include links to related resources
212
212
213
213
public String getVisualisationXdot () {
214
- return "/graph/xdot/" + retrievedFrom .getUrl ().replace ( "https:// " , "" );
214
+ return retrievedFrom .getInternalUrl ().replaceFirst ( "/workflows " , "/graph/xdot " );
215
215
}
216
216
217
217
public String getVisualisationPng () {
218
- return "/graph/png/" + retrievedFrom .getUrl ().replace ( "https:// " , "" );
218
+ return retrievedFrom .getInternalUrl ().replaceFirst ( "/workflows " , "/graph/png " );
219
219
}
220
220
221
221
public String getVisualisationSvg () {
222
- return "/graph/svg/" + retrievedFrom .getUrl ().replace ( "https:// " , "" );
222
+ return retrievedFrom .getInternalUrl ().replaceFirst ( "/workflows " , "/graph/svg " );
223
223
}
224
224
225
225
public String getROBundle () {
226
226
if (roBundlePath != null ) {
227
- return "/robundle/" + retrievedFrom .getUrl ().replace ( "https:// " , "" );
227
+ return retrievedFrom .getInternalUrl ().replaceFirst ( "/workflows " , "/robundle " );
228
228
} else {
229
229
return null ;
230
230
}
You can’t perform that action at this time.
0 commit comments