Skip to content

fix(homepage): broken CTA link#39097

Open
colinmollenhour wants to merge 1 commit intoapache:masterfrom
colinmollenhour:patch-1
Open

fix(homepage): broken CTA link#39097
colinmollenhour wants to merge 1 commit intoapache:masterfrom
colinmollenhour:patch-1

Conversation

@colinmollenhour
Copy link
Copy Markdown

SUMMARY

The most prominent call to action link on the homepage is broken.. Pitching SuperSet it to a CTO and it's the first link he clicks.. :(

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

image image

TESTING INSTRUCTIONS

Go to homepage, click the first "Get Started" button you see.

Copilot AI review requested due to automatic review settings April 3, 2026 16:45
@github-actions github-actions Bot added the doc Namespace | Anything related to documentation label Apr 3, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the homepage’s primary “Get Started” CTA so it routes to the current User Docs entry point, aligning with the docs site’s routeBasePath: 'user-docs' configuration.

Changes:

  • Update the homepage CTA link target from /docs/intro to /user-docs/.

Comment thread docs/src/pages/index.tsx
</div>
<img src="/img/community/line.png" alt="line" />
<StyledButton className="default-button-theme" href="/docs/intro">
<StyledButton className="default-button-theme" href="/user-docs/">
Copy link

Copilot AI Apr 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

StyledButton is a styled @docusaurus/Link, which should use the to prop for internal navigation. Using href can bypass Docusaurus routing/baseUrl handling and is inconsistent with other internal links in this file (e.g. to={href} on StyledDocSectionCard). Switch this to to="/user-docs/".

Suggested change
<StyledButton className="default-button-theme" href="/user-docs/">
<StyledButton className="default-button-theme" to="/user-docs/">

Copilot uses AI. Check for mistakes.
Comment thread docs/src/pages/index.tsx
</div>
<img src="/img/community/line.png" alt="line" />
<StyledButton className="default-button-theme" href="/docs/intro">
<StyledButton className="default-button-theme" href="/user-docs/">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: StyledButton is built on Docusaurus Link, and internal navigation should use the to prop instead of href. Using href here bypasses the router semantics for internal links and can break base-url-aware routing behavior; switch to to to keep navigation consistent with the rest of the page. [logic error]

Severity Level: Major ⚠️
- ⚠️ Homepage "Get Started" CTA triggers full page reload.
- ⚠️ CTA bypasses Docusaurus router and SPA navigation behavior.
- ⚠️ Inconsistent link pattern vs other internal docs links.
Suggested change
<StyledButton className="default-button-theme" href="/user-docs/">
<StyledButton className="default-button-theme" to="/user-docs/">
Steps of Reproduction ✅
1. Build and run the Docusaurus docs site using the configuration at
`docs/docusaurus.config.ts:263` (where `baseUrl` is defined) which serves the homepage
component from `docs/src/pages/index.tsx`.

2. Open the homepage route `/`, which is implemented by `export default function Home():
JSX.Element` at `docs/src/pages/index.tsx:606`.

3. In the hero section, locate the "Get Started" CTA button rendered from `StyledButton`
at `docs/src/pages/index.tsx:720`, where `StyledButton` is defined as `styled(Link)` at
`docs/src/pages/index.tsx:194` and is invoked with `href="/user-docs/"` instead of
`to="/user-docs/"`.

4. Click the "Get Started" button and observe (via browser dev tools/network) that
navigation to `/user-docs/` occurs as a full-page navigation driven by the `href`
attribute rather than client-side routing via Docusaurus `Link.to`, meaning this CTA
bypasses router semantics and SPA behavior, unlike other internal links on the same page
that use `to` (e.g., `StyledDocSectionCard` at `docs/src/pages/index.tsx:745`).
Prompt for AI Agent 🤖
This is a comment left during a code review.

**Path:** docs/src/pages/index.tsx
**Line:** 720:720
**Comment:**
	*Logic Error: `StyledButton` is built on Docusaurus `Link`, and internal navigation should use the `to` prop instead of `href`. Using `href` here bypasses the router semantics for internal links and can break base-url-aware routing behavior; switch to `to` to keep navigation consistent with the rest of the page.

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
👍 | 👎

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 3, 2026

Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit 69980c9
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/69cfeec03c7bb5000848b241
😎 Deploy Preview https://deploy-preview-39097--superset-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@colinmollenhour
Copy link
Copy Markdown
Author

I just saw that this is also fixed by #39077

Copy link
Copy Markdown
Contributor

@bito-code-review bito-code-review Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review Agent Run #ed35aa

Actionable Suggestions - 1
  • docs/src/pages/index.tsx - 1
Review Details
  • Files reviewed - 1 · Commit Range: 69980c9..69980c9
    • docs/src/pages/index.tsx
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at evan@preset.io.

Documentation & Help

AI Code Review powered by Bito Logo

Comment thread docs/src/pages/index.tsx
</div>
<img src="/img/community/line.png" alt="line" />
<StyledButton className="default-button-theme" href="/docs/intro">
<StyledButton className="default-button-theme" href="/user-docs/">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect Link Prop for Internal Route

The StyledButton uses Docusaurus Link, which requires 'to' for internal routes like '/user-docs/', not 'href'. Using 'href' causes a full page reload instead of SPA navigation, degrading user experience. Based on Docusaurus 3.9.2 docs, internal links should use 'to'.

Code suggestion
Check the AI-generated fix before applying
Suggested change
<StyledButton className="default-button-theme" href="/user-docs/">
<StyledButton className="default-button-theme" to="/user-docs/">

Code Review Run #ed35aa


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

@sadpandajoe sadpandajoe requested a review from rusackas April 7, 2026 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Namespace | Anything related to documentation size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants