From e8dd39ac1e7c141293a7359ec82adc45b5f06519 Mon Sep 17 00:00:00 2001 From: Kim Pohas Date: Tue, 11 Feb 2025 20:48:35 -0800 Subject: [PATCH] Homepage buttons (index.tsx) - change absolute links to relative --- src/pages/index.tsx | 72 ++++++++++++++++++++------------------------- 1 file changed, 32 insertions(+), 40 deletions(-) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 4fa5bd335c..220fc4327d 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,5 +1,6 @@ import React, { useState } from 'react'; import Layout from '@theme/Layout'; +import Link from '@docusaurus/Link'; import { Box, Button, Container, Grid, Stack, Tab, Tabs, Typography } from '@mui/material'; import { TabContext, TabPanel } from '@mui/lab'; import bgImage from '../../static/img/hero-secondary-background.webp'; @@ -7,7 +8,7 @@ import heroImage from '../../static/img/hero-secondary-graphic.webp'; import SumoLogicDocsLogo from '../../static/img/sumo-logic-docs.svg'; import { Feature } from '../components/Feature'; import { features } from '../helper/features'; -import ErrorBoundary from '../components/ErrorBoundary'; // Import the ErrorBoundary component +import ErrorBoundary from '../components/ErrorBoundary'; export const Home = () => { const [tab, setTab] = useState('0'); @@ -83,10 +84,7 @@ export const Home = () => { }} height='100%' > - + { { children: '1. Set up collector and source', description: 'Set up a Sumo Logic collector and source', - href: 'https://help.sumologic.com/docs/get-started/quickstart/#step-1-get-your-data-into-sumo', + to: '/docs/get-started/quickstart#step-1-get-your-data-into-sumo', }, { children: '2. Explore your data insights', description: 'Explore your insights', - href: 'https://help.sumologic.com/docs/get-started/quickstart/#step-2-search-and-analyze-your-data', + to: '/docs/get-started/quickstart#step-2-search-and-analyze-your-data', }, { children: '3. Monitor and secure your environment', description: 'Monitor, troubleshoot, and secure your environment', - href: 'https://help.sumologic.com/docs/get-started/quickstart/#step-3-monitor-and-troubleshoot-your-environment', + to: '/docs/get-started/quickstart#step-3-monitor-and-troubleshoot-your-environment', }, - ].map(({ children, ...rest }) => ( - + ].map(({ children, to }) => ( + + + ))} - +