layer5 icon indicating copy to clipboard operation
layer5 copied to clipboard

[Bug] Replace invalid Gatsby Link usage for external URLs and hardcoded domains in collections

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

Description

Following up on #8362 where invalid Gatsby <Link> usages were resolved in site components, several collection files (blogs, news, events, programs, handbook, and resources) still use Gatsby's <Link> component (import { Link } from "gatsby") for external URLs or hardcoded absolute domains (https://layer5.io/...):

  1. Gatsby <Link> used for External URLs: In Gatsby, <Link> is reserved for internal client-side navigation. When clicked on external URLs, Gatsby's router intercepts the event, fails to find an internal route, and breaks navigation:

    • src/collections/blog/2022/2022-05-10-dockercon-22-hpe-talk/index.mdx: Links to Docker Captain blog, SPIFFE, CNCF, and SPIRE.
    • src/collections/blog/2022/2022-05-14-service-meshcon-talk-intel/index.mdx: Link to https://meshery.io/service-mesh-interface.
    • src/collections/blog/2024/11-01-meet-the-maintainer-yash-sharma/index.mdx: Link to https://meshery.io/.
    • src/collections/blog/2021/2021-02-07-meshkit-and-meshery-adapter-library/index.mdx: Links to https://github.com/layer5io/meshkit and http://slack.layer5.io.
    • src/collections/blog/2020/2020-09-25-announcing-meshmates/index.mdx: Link to https://github.com/layer5io.
    • src/collections/programs/hacktoberfest-2023/index.mdx: Link to Google Sheets.
    • src/collections/events/2023/hacktoberfest-2023-docker-ext/index.mdx: Link to Google Sheets.
    • src/collections/events/2023/hacktoberfest-prep/index.mdx: Link to Google Sheets.
    • src/collections/events/2022/hacktoberfest-2022/index.mdx: Link to YouTube livestream.
    • src/collections/news/2022/2022-09-06-the-ultimate-list-of-opensource-cn-tools/index.md: Link to Container Journal.
    • src/collections/news/2025/2025-11-12-meshery-enterprise/index.mdx: Link to CloudNativeNow.
  2. Hardcoded https://layer5.io Domain in <Link>: Gatsby <Link> expects a root-relative path rather than an absolute URL with scheme and host:

    • src/collections/resources/interview/techstrong-tv.mdx: to="https://layer5.io/community/members/lee-calcote"
    • src/collections/blog/2022/2022-06-07-week-open-source-contributions-with-layer5/index.mdx: to="https://layer5.io/community/members/ekene-leonard-nwobodo"
    • src/collections/blog/2024/01-07-contributing-as-a-designer/index.mdx: to="https://layer5.io/community/members/victoria-nduka"
    • src/collections/blog/2021/2021-06-4-announcing-summer-interns/index.mdx: to="https://layer5.io/projects/cloud-native-performance"
    • src/collections/handbook/recognition/index.mdx: to="https://layer5.io/community/community-managers" and to="https://layer5.io/community/meshmates"
    • src/collections/programs/lfx-2023/lfx-2023.mdx: to="https://layer5.io/blog/category/community"
    • src/collections/programs/lfx-2024/lfx-2024.mdx: to="https://layer5.io/blog/category/community"
    • src/collections/programs/lfx-2025/lfx-2025.mdx: to="https://layer5.io/blog/category/community"
    • src/collections/programs/lfx-2026/lfx-2026.mdx: to="https://layer5.io/blog/category/community"
  3. Legacy Route Updates:

    • src/collections/blog/2022/2022-05-10-dockercon-22-hpe-talk/index.mdx: Update legacy /meshmap links to canonical /cloud-native-management/kanvas.

Expected Behavior

  • External links should use standard HTML <a> tags with target="_blank" and rel="noreferrer".
  • Internal links should use root-relative paths without hardcoding the origin domain.
  • Legacy /meshmap references should target canonical /cloud-native-management/kanvas.

Environment

  • Host OS: Any
  • Browser: Any

ayushbuilds-code avatar Nov 10 '26 18:11 ayushbuilds-code