fix: resolve multiple bugs across pages and helpers#114
Merged
praveentcom merged 1 commit intomainfrom Feb 21, 2026
Merged
Conversation
- Use URLS.ARTICLES() instead of hardcoded /articles/ path in article
redirect, so custom articleSlug config is respected
- Replace React key={index} with stable keys (slug/tag) across 7 list
pages to prevent rendering issues on list reorder
- Add image fallback in project detail metadata (ogImage || image)
- Use absolute URLs in structured data schemas for articles, community,
and projects (schema.org requires full URLs)
- Fix getWorkBySlugRaw to return markdown body instead of full file
contents including frontmatter
https://claude.ai/code/session_01GweEL36iiyxmZ6Cgcb75Ak
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes multiple bugs related to URL handling, React key stability, image fallbacks, and markdown content extraction across the portfolio website.
Changes:
- Fixed markdown content extraction to return content without frontmatter in getWorkBySlugRaw
- Updated article redirects to use URLS helper instead of hardcoded paths, respecting custom articleSlug configuration
- Replaced unstable array index keys with stable slug/tag-based keys across 7 list pages
- Added ogImage fallback to image in project metadata
- Fixed structured data schemas to use absolute URLs as required by schema.org
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/components/helpers/work.tsx | Fixed getWorkBySlugRaw to return markdown content without frontmatter |
| src/components/helpers/structured-data.ts | Added BASE_URL prefix to article, community, and project schema URLs |
| src/app/work/page.tsx | Changed React key from index to experience.slug |
| src/app/projects/stack/[tag]/page.tsx | Changed React key from index to project.slug |
| src/app/projects/page.tsx | Changed React key from index to project.slug |
| src/app/projects/[slug]/page.tsx | Changed tag key from index to tag value, added ogImage fallback |
| src/app/education/page.tsx | Changed React key from index to edu.slug |
| src/app/[article]/tag/[tag]/page.tsx | Changed React key from index to article.slug |
| src/app/[article]/category/[category]/page.tsx | Changed React key from index to article.slug |
| src/app/[article]/[year]/[slug]/page.tsx | Changed redirect to use URLS.ARTICLES() helper |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
redirect, so custom articleSlug config is respected
pages to prevent rendering issues on list reorder
and projects (schema.org requires full URLs)
contents including frontmatter
https://claude.ai/code/session_01GweEL36iiyxmZ6Cgcb75Ak