From fc491bc2a6e9f3eb1ac46f67ce49404a6e3e374e Mon Sep 17 00:00:00 2001 From: CD Cabrera Date: Mon, 19 Oct 2020 13:36:20 -0400 Subject: [PATCH] fix(openshiftView,rhelView): issues/414 inventory link prefix (#463) --- src/components/openshiftView/openshiftView.js | 4 ++-- src/components/rhelView/rhelView.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/openshiftView/openshiftView.js b/src/components/openshiftView/openshiftView.js index 65447a1c1..1d676cffd 100644 --- a/src/components/openshiftView/openshiftView.js +++ b/src/components/openshiftView/openshiftView.js @@ -274,7 +274,7 @@ OpenshiftView.defaultProps = { component="a" variant="link" target="_blank" - href={`/insights/inventory/${inventoryId.value}/`} + href={`${helpers.UI_DEPLOY_PATH_PREFIX}/insights/inventory/${inventoryId.value}/`} > {displayName.value || inventoryId.value} @@ -310,7 +310,7 @@ OpenshiftView.defaultProps = { component="a" variant="link" target="_blank" - href={`/insights/inventory/${inventoryId.value}/`} + href={`${helpers.UI_DEPLOY_PATH_PREFIX}/insights/inventory/${inventoryId.value}/`} > {displayName.value || inventoryId.value} diff --git a/src/components/rhelView/rhelView.js b/src/components/rhelView/rhelView.js index fe731df19..5a2e572aa 100644 --- a/src/components/rhelView/rhelView.js +++ b/src/components/rhelView/rhelView.js @@ -196,7 +196,7 @@ RhelView.defaultProps = { component="a" variant="link" target="_blank" - href={`/insights/inventory/${inventoryId.value}/`} + href={`${helpers.UI_DEPLOY_PATH_PREFIX}/insights/inventory/${inventoryId.value}/`} > {displayName.value || inventoryId.value} @@ -232,7 +232,7 @@ RhelView.defaultProps = { component="a" variant="link" target="_blank" - href={`/insights/inventory/${inventoryId.value}/`} + href={`${helpers.UI_DEPLOY_PATH_PREFIX}/insights/inventory/${inventoryId.value}/`} > {displayName.value || inventoryId.value}