Skip to content

Fix unresponsive footer links (CodeWars, HackerRank, Notes & Resources) - #189

Merged
mathcodes merged 1 commit into
mainfrom
fix/footer-links-182
Nov 30, 2026
Merged

mathcodes merged 1 commit into
mainfrom
fix/footer-links-182

Conversation

@mathcodes

Copy link
Copy Markdown
Owner

Summary

Fixes #182 — the footer Content links (LeetCode, CodeWars, HackerRank, Notes & Resources) were unresponsive/broken on the deployed site.

Root cause

The footer rendered internal routes with plain <a href> tags. Each click triggered a full server round-trip instead of client-side routing; on static hosting without an SPA fallback, requests to /codewars, /hackerrank, and /notes fail, so the links appear dead.

Changes

  • src/components/footer/Footer.jsx: internal links (hrefs starting with /) now render with react-router <Link> for client-side navigation; external links keep <a> and open in a new tab with rel="noreferrer".
  • src/pages/PlaceholderPage.jsx: the "Return Home" button on the landing pages now uses <Link> as well.

Verification

  • Ran the dev server and clicked every footer Content link in a browser — all four navigate instantly via client-side routing (no page reload) to their routes defined in App.js.
  • pnpm run build compiles successfully.

Footer internal links (LeetCode, CodeWars, HackerRank, Notes & Resources)
used plain anchor tags, forcing full page reloads that fail on static
hosting without SPA fallback. Internal links now use react-router Link
for client-side navigation; external links open in a new tab.

Fixes #182

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@vercel

vercel Bot commented Nov 30, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
contentfordevelopers Building Building Preview Nov 30, 2026 3:04am UTC

@mathcodes
mathcodes merged commit afd7445 into main Nov 30, 2026
5 of 6 checks passed

@mathcodes mathcodes left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Reviewed and verified locally:

  • Reproduced the setup from #182: footer Content links were plain <a> anchors causing full page reloads — the reason they appear unresponsive on the deployed static host (no SPA fallback for /codewars, /hackerrank, /notes).
  • After the change, clicked all four footer links (LeetCode, CodeWars, HackerRank, Notes & Resources) in a running dev server: each navigates instantly via React Router client-side routing to its route in App.js, no reload.
  • External footer links (GitHub, Guidelines, License, etc.) still work and now open in a new tab.
  • Production build (pnpm run build) compiles cleanly.

LGTM — merging.

@mathcodes
mathcodes deleted the fix/footer-links-182 branch November 30, 2026 03:36

This branch was successfully deployed

1 active deployment
Preview — b15f9551 Deployed Nov 30, 2026 by vercel[bot]
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.

footer links are not working - CodeWars, HackerRank, Notes & Resources

1 participant