layer5 icon indicating copy to clipboard operation
layer5 copied to clipboard

[Bug] Fix invalid 'href' prop in Gatsby Link components and canonical feature route

Open ayushbuilds-code opened this issue 3 weeks ago • 0 comments

Description

In several feature and diagram sections across the site, Gatsby's <Link> component (import { Link } from "gatsby") is used with an href prop instead of the required to prop:

// Current:
<Link className="link" href="/solutions/architecture-diagram">Learn more &rarr;</Link>

In Gatsby, <Link> wraps Reach Router's <Link> and requires the to prop. Supplying href instead of to leaves the to prop undefined, triggering React's prop type warning (The prop 'to' is marked as required in 'Link', but its value is 'undefined') and breaking Gatsby's client-side prefetching and route handling.

Additionally, in src/components/Features/TwoColLayout.js (line 90), the image card links to /orchestration-management instead of the canonical route /solutions/orchestration-management (which the adjacent "Learn more" link on line 97 points to).

Affected Files

  1. src/sections/AWS-Diagram/diagram.js
  2. src/sections/GCP-Diagram/diagram.js
  3. src/sections/Kubernetes-Diagram/diagram.js
  4. src/sections/CloudNativeDeployments/features.js
  5. src/sections/Developer-Infrastructure/features.js
  6. src/sections/kubernetes-multi-cluster/features.js
  7. src/components/Features/TwoColLayout.js

Expected Behavior

  • All <Link> components should use to="..." for internal Gatsby client-side routing.
  • The image in TwoColLayout.js should link to the canonical /solutions/orchestration-management route.

Environment

  • Host OS: Any
  • Framework: Gatsby / React

ayushbuilds-code avatar Nov 09 '26 07:11 ayushbuilds-code