From 4a02667218b89f50cfa65c3880b8e88b7b6c3385 Mon Sep 17 00:00:00 2001 From: CD Cabrera Date: Thu, 11 Nov 2021 10:56:08 -0500 Subject: [PATCH] fix(routes): ent-4366 rhosak product path id (#826) * routes, use streams alias for rhosak --- .../__tests__/__snapshots__/authentication.test.js.snap | 4 ++-- .../router/__tests__/__snapshots__/redirect.test.js.snap | 2 +- .../router/__tests__/__snapshots__/router.test.js.snap | 2 +- .../router/__tests__/__snapshots__/routerHelpers.test.js.snap | 2 +- src/config/routes.js | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/authentication/__tests__/__snapshots__/authentication.test.js.snap b/src/components/authentication/__tests__/__snapshots__/authentication.test.js.snap index 32ff56d97..c9cba64aa 100644 --- a/src/components/authentication/__tests__/__snapshots__/authentication.test.js.snap +++ b/src/components/authentication/__tests__/__snapshots__/authentication.test.js.snap @@ -374,7 +374,7 @@ exports[`Authentication Component should return a redirect on 418 error: 418 err "disabled": false, "exact": true, "id": "rhosak", - "path": "/rhosak", + "path": "/streams", "redirect": null, }, Object { @@ -522,7 +522,7 @@ exports[`Authentication Component should return a redirect on a specific 403 err "disabled": false, "exact": true, "id": "rhosak", - "path": "/rhosak", + "path": "/streams", "redirect": null, }, Object { diff --git a/src/components/router/__tests__/__snapshots__/redirect.test.js.snap b/src/components/router/__tests__/__snapshots__/redirect.test.js.snap index 1c16ad375..cdbf52ccd 100644 --- a/src/components/router/__tests__/__snapshots__/redirect.test.js.snap +++ b/src/components/router/__tests__/__snapshots__/redirect.test.js.snap @@ -402,7 +402,7 @@ exports[`Redirect Component should render a basic component: basic 1`] = ` "disabled": false, "exact": true, "id": "rhosak", - "path": "/rhosak", + "path": "/streams", "redirect": null, }, Object { diff --git a/src/components/router/__tests__/__snapshots__/router.test.js.snap b/src/components/router/__tests__/__snapshots__/router.test.js.snap index 93473ab71..f679ab03e 100644 --- a/src/components/router/__tests__/__snapshots__/router.test.js.snap +++ b/src/components/router/__tests__/__snapshots__/router.test.js.snap @@ -128,7 +128,7 @@ exports[`Router Component should render a basic component: basic 1`] = ` "disabled": false, "exact": true, "id": "rhosak", - "path": "/rhosak", + "path": "/streams", "redirect": null, }, Object { diff --git a/src/components/router/__tests__/__snapshots__/routerHelpers.test.js.snap b/src/components/router/__tests__/__snapshots__/routerHelpers.test.js.snap index badad8ad6..f199d9774 100644 --- a/src/components/router/__tests__/__snapshots__/routerHelpers.test.js.snap +++ b/src/components/router/__tests__/__snapshots__/routerHelpers.test.js.snap @@ -259,7 +259,7 @@ Object { "disabled": false, "exact": true, "id": "rhosak", - "path": "/rhosak", + "path": "/streams", "redirect": null, }, Object { diff --git a/src/config/routes.js b/src/config/routes.js index 2e81eb994..b0a4b932b 100644 --- a/src/config/routes.js +++ b/src/config/routes.js @@ -108,13 +108,13 @@ const routes = [ }, { id: 'rhosak', - path: '/rhosak', + path: '/streams', pathParameter: [rhosakConfig.productId], productParameter: [rhosakConfig.productGroup], productConfig: [rhosakConfig], redirect: null, isSearchable: true, - aliases: [], + aliases: ['application-services', 'streams', 'rhosak'], activateOnError: false, disabled: helpers.UI_DISABLED, default: false,