From 82c4fe3c008cf4c433b04246390d8f48c8469f7c Mon Sep 17 00:00:00 2001 From: Dillan Cooke Date: Mon, 30 Sep 2024 13:08:28 -0400 Subject: [PATCH] [GLT-4273] updated MISO links --- changes/change_miso_urls.md | 1 + ts/util/urls.ts | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 changes/change_miso_urls.md diff --git a/changes/change_miso_urls.md b/changes/change_miso_urls.md new file mode 100644 index 00000000..6902b91e --- /dev/null +++ b/changes/change_miso_urls.md @@ -0,0 +1 @@ +Links to MISO have been updated diff --git a/ts/util/urls.ts b/ts/util/urls.ts index e07914e5..0d966f8a 100644 --- a/ts/util/urls.ts +++ b/ts/util/urls.ts @@ -3,7 +3,6 @@ import { toTitleCase } from "./html-utils"; import { Pair } from "./pair"; const restBaseUrl = "/rest"; -const misoBaseUrl = `${siteConfig.misoUrl}/miso`; export const urls = { dimsum: { @@ -77,7 +76,7 @@ export const urls = { run: (runName: string) => makeMisoUrl("run/alias", runName), requisition: (requisitionId: number) => makeMisoUrl("requisition", requisitionId), - qcRunLibraries: `${misoBaseUrl}/runlibraries/metrics`, + qcRunLibraries: `${siteConfig.misoUrl}/runlibraries/metrics`, assay: (assayId: number) => makeMisoUrl("assay", assayId), }, dashi: { @@ -114,7 +113,7 @@ export const urls = { }; function makeMisoUrl(type: string, id: number | string) { - return `${misoBaseUrl}/${type}/${id}`; + return `${siteConfig.misoUrl}/${type}/${id}`; } function makeDashiProjectUrl(report: string, project: string) {