Skip to content

Hide Features nav link on non-home pages#30

Merged
msaps merged 1 commit into
mainfrom
feature/nav-bar-improvement
May 22, 2026
Merged

Hide Features nav link on non-home pages#30
msaps merged 1 commit into
mainfrom
feature/nav-bar-improvement

Conversation

@msaps
Copy link
Copy Markdown
Member

@msaps msaps commented May 22, 2026

Summary

The "Features" nav link in the header is an anchor link to the #features section on the home page. Showing it on other pages (Terms, Privacy, Disclaimer) is confusing since it doesn't make contextual sense there.

Changes

  • Import useLocation from React Router to detect the current route
  • Conditionally render the "Features" link only when pathname === "/"
  • Applied to both desktop nav and mobile hamburger menu

Testing

  • Visit the home page — "Features" link should appear in the nav
  • Navigate to /terms, /privacy, or /disclaimer — "Features" link should not appear
  • Mobile menu should behave the same on both home and other pages

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 22, 2026

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

Project Deployment Actions Updated (UTC)
loungebird Ready Ready Preview, Comment May 22, 2026 1:09pm

@msaps msaps merged commit b60a2be into main May 22, 2026
3 checks passed
@msaps msaps deleted the feature/nav-bar-improvement branch May 22, 2026 13:11
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.

1 participant