From b15f9551c567d5411b5fbaffdcc1cc819976ef9b Mon Sep 17 00:00:00 2001 From: Jon Christie Date: Sun, 29 Nov 2026 22:03:55 -0500 Subject: [PATCH] Fix unresponsive footer links with client-side routing 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> --- src/components/footer/Footer.jsx | 8 +++++++- src/pages/PlaceholderPage.jsx | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/components/footer/Footer.jsx b/src/components/footer/Footer.jsx index 87ed620..21917a2 100644 --- a/src/components/footer/Footer.jsx +++ b/src/components/footer/Footer.jsx @@ -1,3 +1,5 @@ +import { Link } from 'react-router-dom'; + const navigation = { content: [ { name: 'LeetCode', href: '/leetcode' }, @@ -32,7 +34,11 @@ const FooterCol = ({ title, links }) => ( diff --git a/src/pages/PlaceholderPage.jsx b/src/pages/PlaceholderPage.jsx index 5f57565..d9abaa8 100644 --- a/src/pages/PlaceholderPage.jsx +++ b/src/pages/PlaceholderPage.jsx @@ -1,4 +1,5 @@ import React from 'react'; +import { Link } from 'react-router-dom'; import NavBar from '../components/navbar/Navbar'; import Footer from '../components/footer/Footer'; @@ -13,7 +14,7 @@ export default function PlaceholderPage({ title = 'Coming Soon' }) { This section is being built. Check back soon for new content, or help us build it!

- Return Home + Return Home