Skip to content

Redirect to the latest program page#7375

Merged
fitzergerald merged 1 commit intolayer5io:masterfrom
CodexRaunak:fix-redirect
Jan 26, 2026
Merged

Redirect to the latest program page#7375
fitzergerald merged 1 commit intolayer5io:masterfrom
CodexRaunak:fix-redirect

Conversation

@CodexRaunak
Copy link
Copy Markdown
Contributor

@CodexRaunak CodexRaunak commented Jan 25, 2026

Description
Before: (not referencing the latest page )
image

After:
image

This PR fixes #

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

@l5io
Copy link
Copy Markdown
Member

l5io commented Jan 25, 2026

🚀 Preview for commit 223c94d at: https://697671516178e3b91043172f--layer5.netlify.app

Copy link
Copy Markdown
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.

This seems like much complexity for something that should be out-of-the box for Gatsby.js as a framework. Please confirm.

@l5io
Copy link
Copy Markdown
Member

l5io commented Jan 25, 2026

🚀 Preview for commit 7fddbea at: https://69767fcff8d852dbdb897a55--layer5.netlify.app

@CodexRaunak
Copy link
Copy Markdown
Contributor Author

CodexRaunak commented Jan 25, 2026

This seems like much complexity for something that should be out-of-the box for Gatsby.js as a framework. Please confirm.

The manual logic was doing the following:

  • Group programs by slug
  • Extract year from each slug (e.g., "gsoc/2026" → 2026)
  • Sort to find latest
  • Create one redirect

If not, we can use the redirect_from to redirect /programs/gsoc -> /programs/gsoc/2026.
That way we need to do this for every index.mdx file made every year and remove the previous one.
I have updated it to the minimal fix for now.

Thank You

@CodexRaunak CodexRaunak changed the title Redirect from server side to latest GSoC page Redirect to the latest program page Jan 25, 2026
@l5io
Copy link
Copy Markdown
Member

l5io commented Jan 25, 2026

🚀 Preview for commit 51a9443 at: https://6976895d1ab379fd5fed8c79--layer5.netlify.app

@CodexRaunak CodexRaunak marked this pull request as draft January 25, 2026 22:25
Signed-off-by: Raunak Madan <madanraunak24@gmail.com>
@l5io
Copy link
Copy Markdown
Member

l5io commented Jan 26, 2026

🚀 Preview for commit d09bbf5 at: https://69779aa7f9dbe2008ea6ab32--layer5.netlify.app

@fitzergerald fitzergerald marked this pull request as ready for review January 26, 2026 20:43
Copilot AI review requested due to automatic review settings January 26, 2026 20:43
@fitzergerald fitzergerald merged commit f65842e into layer5io:master Jan 26, 2026
4 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the LFX 2026 program MDX frontmatter so that the generic LFX program URL redirects to the latest program page.

Changes:

  • Adds a redirect_from entry to route /programs/lfx to the 2026 LFX program page.

@CodexRaunak CodexRaunak deleted the fix-redirect branch January 26, 2026 21:40
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.

5 participants