We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a062122 commit bebabcfCopy full SHA for bebabcf
src/main/java/org/commonwl/view/workflow/Workflow.java
@@ -213,7 +213,7 @@ public String getRoBundleLink() {
213
}
214
215
public String getPermalink(String format) {
216
- String formatPart = (format != null && !format.isEmpty()) ? "?format=" + format : "";
+ String formatPart = (format == null || format.isEmpty()) ? "" : "?format=" + format;
217
String packedPart = (retrievedFrom.getPackedId() != null) ? "#" + retrievedFrom.getPackedId() : "";
218
return "https://w3id.org/cwl/view/git/" + lastCommit +
219
"/" + retrievedFrom.getPath() + formatPart + packedPart;
0 commit comments