Skip to content

Commit

Permalink
wc: Fix link to interpreter tool from grid #TASK-7216 #TASK-7100
Browse files Browse the repository at this point in the history
  • Loading branch information
jmjuanes committed Nov 27, 2024
1 parent 4944991 commit 1ca5ac2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/webcomponents/clinical/clinical-analysis-grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ export default class ClinicalAnalysisGrid extends LitElement {

caseFormatter(value, row) {
if (row?.id) {
const url = `#interpreter/${this.opencgaSession.project.id}/${this.opencgaSession.study.id}/${row.id}`;
// Note: we have to maintain the URL structure, so if we are inside an app we have to maintain the app
const hashItems = window.location.hash.replace("#", "").split("/");
const url = `#${[...hashItems.slice(0, -3), "interpreter", this.opencgaSession.project.id, this.opencgaSession.study.id].join("/")}?id=${row.id}`;
return `
<div class="mt-1 me-0">
<a class="text-decoration-none" title="Go to Case Interpreter" href="${url}" data-cy="case-id">
Expand Down

0 comments on commit 1ca5ac2

Please sign in to comment.