Skip to content
/ devmdx Public template

fix: resolve multiple bugs across pages and helpers#114

Merged
praveentcom merged 1 commit intomainfrom
claude/fix-bugs-aNSnU
Feb 21, 2026
Merged

fix: resolve multiple bugs across pages and helpers#114
praveentcom merged 1 commit intomainfrom
claude/fix-bugs-aNSnU

Conversation

@praveentcom
Copy link
Owner

  • 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

- 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
Copilot AI review requested due to automatic review settings February 21, 2026 03:03
@vercel
Copy link

vercel bot commented Feb 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
devmdx Error Error Feb 21, 2026 3:03am

@praveentcom praveentcom merged commit 9809797 into main Feb 21, 2026
5 of 8 checks passed
Copy link
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 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.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants