File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11import * as React from 'react'
22
33import { Breadcrumb , BreadcrumbItemModel , ContentLayout } from '../../../../../lib'
4- import { toolTitle } from '../../../dev-center.routes'
4+ import { rootRoute , toolTitle } from '../../../dev-center.routes'
55import { LayoutDocHeader , MarkdownDoc } from '../../../dev-center-lib/MarkdownDoc'
66import useMarkdown from '../../../dev-center-lib/hooks/useMarkdown'
77
@@ -11,7 +11,7 @@ import styles from './GettingStartedGuide.module.scss'
1111export 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
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { FC } from 'react'
33import { Button } from '../../../../../../../lib'
44import { ApiCornerIcon , ApiIcon , CommunityAppCornerIcon , CommunityAppIcon } from '../../../../../assets/i'
55import { DevCenterCard } from '../../dev-center-card'
6+ import { rootRoute } from '../../../../../dev-center.routes'
67
78import 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 /> }
You can’t perform that action at this time.
0 commit comments