Skip to content

Commit

Permalink
wc: Fix query section of the copied iva link #TASK-7216 #TASK-7100
Browse files Browse the repository at this point in the history
  • Loading branch information
jmjuanes committed Jan 20, 2025
1 parent 3b0cac8 commit 0288dfe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/webcomponents/commons/utils/web-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ export default class WebUtils {
const keys = Object.keys(query);
// Special case: only id field is in the query
if (keys.length === 1 && keys[0] === "id") {
queryStr = query.id;
queryStr = "/" + query.id;
} else {
queryStr = (new URLSearchParams(query)).toString();
queryStr = "?" + (new URLSearchParams(query)).toString();
}
}
return `${baseUrl}#${tool}/${opencgaSession.project.id}/${opencgaSession.study.id}/${queryStr}`;
return `${baseUrl}#${tool}/${opencgaSession.project.id}/${opencgaSession.study.id}${queryStr}`;
}

static jobStatusFormatter(status, appendDescription = false) {
Expand Down

0 comments on commit 0288dfe

Please sign in to comment.