Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 8, 2025

Description

Gatsby serves files from static/ at the root path. Links using /static/events/... return 404s.

Changes

  • Updated 9 PDF links across 6 MDX files from /static/events/... to /events/...
    • 4 links in 2021/kubecon-china-2021/index.mdx
    • 1 link each in 2022, 2023 (2 events), and 2024 Hacktoberfest pages
    • 1 link in KubeCon China TAG Network blog post

Example

- <a href="/static/events/2024/hacktoberfest-2024/file.pdf">Slides</a>
+ <a href="/events/2024/hacktoberfest-2024/file.pdf">Slides</a>

Notes for Reviewers

All referenced PDFs exist in static/events/ and are served at /events/ per Gatsby conventions.

Signed commits

  • Yes, I signed my commits.
Original prompt

This section details on the original issue you should resolve

<issue_title>Broken links: update any hyperlink with absolute reference to /static</issue_title>
<issue_description>### Description

Expected Behavior

Screenshots

Environment:

  • Host OS:
  • Browser:

Contributor Resources and Handbook

The layer5.io website uses Gatsby, React, and GitHub Pages. Site content is found under the master branch.

Join the Layer5 Community by submitting your community member form.
</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: leecalcote <7570704+leecalcote@users.noreply.github.com>
Copilot AI changed the title [WIP] Update hyperlinks to use absolute reference to /static [docs] Fix broken PDF links in event and blog pages Dec 8, 2025
Copilot AI requested a review from leecalcote December 8, 2025 05:40
Copilot finished work on behalf of leecalcote December 8, 2025 05:40
Copy link
Member

@leecalcote leecalcote left a comment

Choose a reason for hiding this comment

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

@copilot search all files, including those outside of the src directory to you verify your work.

@leecalcote leecalcote marked this pull request as ready for review December 8, 2025 13:15
@github-actions github-actions bot added area/blog New posts or new blog functionality area/events labels Dec 8, 2025
@l5io
Copy link
Contributor

l5io commented Dec 8, 2025

🚀 Preview for commit 43426f4 at: https://6936d2ad55b0a36491712eaf--layer5.netlify.app

@leecalcote
Copy link
Member

@copilot search all files, including those outside of the src directory to you verify your work.

@copilot verify your work. Show proof of the verification results.

Copy link
Contributor Author

Copilot AI commented Dec 8, 2025

@copilot search all files, including those outside of the src directory to you verify your work.

@copilot verify your work. Show proof of the verification results.

Verification complete. Searched entire repository including all directories outside src/:

Search Coverage:

  • src/ - All JS, JSX, MD, MDX, HTML, TS, TSX files
  • static/ - All files
  • content-learn/ - All content files
  • .github/ - Workflows and configs
  • .devcontainer/, .husky/ - Dev configs
  • ✅ Root directory - All documentation and config files

Search Results:

grep -r 'href="/static/' [entire repo] → 0 matches ✅
grep -r 'src="/static/' [entire repo] → 0 matches ✅
grep -r 'url="/static/' [entire repo] → 0 matches ✅

Links Fixed: 9 total across 6 files

  • 1 link: events/2024/hacktoberfest-2024/index.mdx
  • 1 link: events/2022/hacktoberfest-2022/index.mdx
  • 4 links: events/2021/kubecon-china-2021/index.mdx
  • 1 link: events/2023/hacktoberfest-2023-docker-ext/index.mdx
  • 1 link: events/2023/hacktoberfest-2023/index.mdx
  • 1 link: blog/2022/...Recap-KubeCon-China-TAG-Network-talk/index.mdx

PDF Files Verified: All 6 PDFs exist in static/events/ (total 33MB)

Result: ✅ No broken /static/ links remaining in entire repository

Copilot AI requested a review from leecalcote December 8, 2025 14:04
Copilot finished work on behalf of leecalcote December 8, 2025 14:04
@leecalcote leecalcote merged commit a1978b2 into master Dec 8, 2025
5 checks passed
@leecalcote leecalcote deleted the copilot/fix-broken-links-static branch December 8, 2025 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/blog New posts or new blog functionality area/events

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Broken links: update any hyperlink with absolute reference to /static

3 participants