layer5
layer5 copied to clipboard
[Bug] Replace invalid Gatsby Link usage for external URLs and hardcoded domains in collections
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/...):
-
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 tohttps://meshery.io/service-mesh-interface.src/collections/blog/2024/11-01-meet-the-maintainer-yash-sharma/index.mdx: Link tohttps://meshery.io/.src/collections/blog/2021/2021-02-07-meshkit-and-meshery-adapter-library/index.mdx: Links tohttps://github.com/layer5io/meshkitandhttp://slack.layer5.io.src/collections/blog/2020/2020-09-25-announcing-meshmates/index.mdx: Link tohttps://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.
-
Hardcoded
https://layer5.ioDomain 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"andto="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"
-
Legacy Route Updates:
src/collections/blog/2022/2022-05-10-dockercon-22-hpe-talk/index.mdx: Update legacy/meshmaplinks to canonical/cloud-native-management/kanvas.
Expected Behavior
- External links should use standard HTML
<a>tags withtarget="_blank"andrel="noreferrer". - Internal links should use root-relative paths without hardcoding the origin domain.
- Legacy
/meshmapreferences should target canonical/cloud-native-management/kanvas.
Environment
- Host OS: Any
- Browser: Any