Skip to content

Commit a20c2bb

Browse files
committed
TCA-1281 - self service root route
1 parent 379a2b8 commit a20c2bb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/constants/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const GA_ID = "GTM-MXXQHG8";
4747

4848
export const ROUTES = {
4949
INTAKE_FORM: `${selfServiceRootRoute}/wizard`,
50-
HOME_PAGE: `${selfServiceRootRoute}`,
50+
HOME_PAGE: rootRoute || '/',
5151
DASHBOARD_PAGE: `${rootRoute}/dashboard`,
5252
WEBSITE_DESIGN: `${selfServiceRootRoute}/new/website-design/basic-info`,
5353
WEBSITE_DESIGN_REVIEW: `${selfServiceRootRoute}/new/website-design/review`,

src/routes/Products/components/BasicInfo/index.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
BUTTON_TYPE,
2222
PageOptions,
2323
PrimaryDataChallengeOptions,
24+
ROUTES,
2425
} from "../../../../constants/";
2526
import {
2627
saveBasicInfo,
@@ -219,7 +220,7 @@ const BasicInfo = ({
219220
const saveForm = (autoSave) => {
220221
saveBasicInfo(formData);
221222
dispatch(triggerAutoSave(autoSave, isLoggedIn, true));
222-
if (autoSave) navigate(selfServiceRootRoute);
223+
if (autoSave) navigate(ROUTES.HOME_PAGE);
223224
};
224225

225226
const onClickBreadcrumbItem = (item) => {

0 commit comments

Comments
 (0)