Skip to content

[Programs] Fix Hacktoberfest card linking to /programs/null on /careers/internships - #8056

Open
Voyagerroc-Lab wants to merge 1 commit into
layer5io:masterfrom
Voyagerroc-Lab:fix/8050-hacktoberfest-program-slug
Open

Voyagerroc-Lab wants to merge 1 commit into
layer5io:masterfrom
Voyagerroc-Lab:fix/8050-hacktoberfest-program-slug

Conversation

@Voyagerroc-Lab

@Voyagerroc-Lab Voyagerroc-Lab commented Sep 14, 2026

Copy link
Copy Markdown

Description

This PR fixes #8050.

On https://layer5.io/careers/internships the Hacktoberfest program card linked to https://layer5.io/programs/null instead of a valid URL.

Root cause

src/collections/programs/hacktoberfest-2023/index.mdx (the "Hacktoberfest Prep 2023 ..." entry) was missing the programSlug frontmatter field.

The careers programs grid (src/sections/Careers/Careers-Programs-grid/index.js) queries all programs collection entries, sorts them by archived (ASC) then title (DESC), and de-duplicates by the program name. Because title is sorted descending, "Hacktoberfest Prep 2023: ..." sorts ahead of "Hacktoberfest 2025", "Hacktoberfest 2024", etc., so this entry won the de-duplication for the Hacktoberfest program. Its absent programSlug is returned by Gatsby's GraphQL layer as null, and the card link is built as `/programs/${frontmatter.programSlug}`/programs/null.

Change

Added the missing field, matching the pattern already used by every sibling Hacktoberfest entry (hacktoberfest-2020hacktoberfest-2025):

 program: "Hacktoberfest"
+programSlug: "hacktoberfest"
 date: 2023-09-29

Notes for Reviewers — Verification

  1. Root-cause / behavior reproduced by re-implementing the exact grid logic (sort archived ASC + title DESC, de-dupe by program, link `/programs/${programSlug}`) against the working tree vs. HEAD:
    • BEFORE: Hacktoberfest card (winning entry hacktoberfest-2023) → programSlug = null/programs/null
    • AFTER: Hacktoberfest card (winning entry hacktoberfest-2023) → programSlug = "hacktoberfest"/programs/hacktoberfest
    • All other program cards unchanged (sca-contributhon, mlh, gsoc, gsod, communitybridge, and the Layer5 entry which intentionally uses its own page slug).
  2. ESLint (npx eslint . with NODE_ENV=test, per the repo's lint note): the changed file is .mdx frontmatter and is not covered by the ESLint config, and ESLint reports no changes vs. baseline.
  3. A local full gatsby build could not be completed in my environment because sharp fails to compile without a Visual Studio C++ toolchain (node-gyp: Could not find any Visual Studio installation). This is an environment limitation only; the PR preview build will exercise the full Gatsby data layer.

Scope: single line, one file, no logic/component changes.

Signed commits

  • Yes, I signed my commits.

Summary by CodeRabbit

  • Content Updates
    • Updated the Hacktoberfest 2023 event page metadata to associate it with the Hacktoberfest program.

The Hacktoberfest 2023 "Prep" entry
(src/collections/programs/hacktoberfest-2023/index.mdx) omitted the
programSlug frontmatter field. The careers programs grid
(src/sections/Careers/Careers-Programs-grid/index.js) sorts programs by
archived (ASC) then title (DESC) and de-duplicates by the program name,
so this entry sorted ahead of the other "Hacktoberfest" entries and won
the de-duplication. Its null programSlug produced an invalid
/programs/null link for the Hacktoberfest card on /careers/internships.

Adding programSlug: hacktoberfest (matching the sibling hacktoberfest-*
entries) makes the card resolve to /programs/hacktoberfest.

Fixes layer5io#8050

Signed-off-by: Erol Tasci <tascierol32@gmail.com>
@coderabbitai

coderabbitai Bot commented Sep 14, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: dd40ee78-3d07-41f8-b797-9dd62016533d

📥 Commits

Reviewing files that changed from the base of the PR and between bd554ad and b099a7a.

📒 Files selected for processing (1)
  • src/collections/programs/hacktoberfest-2023/index.mdx

Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review.


📝 Walkthrough

Walkthrough

The Hacktoberfest event metadata now includes programSlug: "hacktoberfest".

Changes

Hacktoberfest program metadata

Layer / File(s) Summary
Add program slug
src/collections/programs/hacktoberfest-2023/index.mdx
The event frontmatter now defines the programSlug value as "hacktoberfest".

Priority: ➖ Normal

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Bug fix · Severity of issue fixed: Medium

Merge Risk: ⚪ Minimal · up to b099a

The Hacktoberfest card should now resolve to the intended program URL without introducing runtime or deployment risk.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly states that the Hacktoberfest program card link is being fixed from /programs/null. This matches the primary change described in the pull request.
Linked Issues check ✅ Passed The change adds programSlug: "hacktoberfest" to src/collections/programs/hacktoberfest-2023/index.mdx. This supplies the slug required by issue #8050 and changes the generated program-card target …
Out of Scope Changes check ✅ Passed The pull request changes only the Hacktoberfest 2023 program frontmatter field required by issue #8050. It includes no unrelated component, logic, or content changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Hacktoberfest program card navigates to /programs/null instead of valid slug

1 participant