Skip to content

Commit b66975c

Browse files
committed
TCA-1281 - more fixes
1 parent 48a5008 commit b66975c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src-ts/tools/dev-center/dev-center-pages/community-app/getting-started/GettingStartedGuide.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as React from 'react'
22

33
import { Breadcrumb, BreadcrumbItemModel, ContentLayout } from '../../../../../lib'
4-
import { toolTitle } from '../../../dev-center.routes'
4+
import { rootRoute, toolTitle } from '../../../dev-center.routes'
55
import { LayoutDocHeader, MarkdownDoc } from '../../../dev-center-lib/MarkdownDoc'
66
import useMarkdown from '../../../dev-center-lib/hooks/useMarkdown'
77

@@ -11,7 +11,7 @@ import styles from './GettingStartedGuide.module.scss'
1111
export const GettingStartedGuide: React.FC = () => {
1212
const { doc, toc, title }: ReturnType<typeof useMarkdown> = useMarkdown({ uri: gettingStartedGuide })
1313
const breadcrumb: Array<BreadcrumbItemModel> = React.useMemo(() => [
14-
{ name: toolTitle, url: '/' },
14+
{ name: toolTitle, url: rootRoute || '/' },
1515
{ name: title, url: '#' },
1616
], [title])
1717

src-ts/tools/dev-center/dev-center-pages/community-app/landing-page/dev-center-get-started/GetStartedCardsContainer/GetStartedCardsContainer.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { FC } from 'react'
33
import { Button } from '../../../../../../../lib'
44
import { ApiCornerIcon, ApiIcon, CommunityAppCornerIcon, CommunityAppIcon } from '../../../../../assets/i'
55
import { DevCenterCard } from '../../dev-center-card'
6+
import { rootRoute } from '../../../../../dev-center.routes'
67

78
import styles from './GetStartedCardsContainer.module.scss'
89

@@ -14,7 +15,7 @@ const GetStartedCardsContainer: FC = () => (
1415
title='Community App'
1516
titleClass={styles.communityTitle}
1617
description='Learn about Topcoder Community App and run started code.'
17-
button={<Button route='/getting-started' label='get started' className={styles.button} />}
18+
button={<Button route={`${rootRoute}/getting-started`} label='get started' className={styles.button} />}
1819
/>
1920
<DevCenterCard
2021
cornerIcon={<ApiCornerIcon />}

0 commit comments

Comments
 (0)