Skip to content

Conversation

@CodexRaunak
Copy link
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
Contributor

l5io commented Jan 25, 2026

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

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.

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
Contributor

l5io commented Jan 25, 2026

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

@CodexRaunak
Copy link
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
Contributor

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
Contributor

l5io commented Jan 26, 2026

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

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.

3 participants