-
-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Labels
bugSomething isn't workingSomething isn't working
Description
🐛 Bug Description
The Pricing link in the navbar uses a relative hash anchor (#pricing), which causes incorrect navigation when clicked from pages other than the home page (e.g., /terms, /privacy).
Instead of navigating back to the home page and scrolling to the Pricing section, the hash is appended to the current route.
Steps to Reproduce
- Navigate to the home page (
/) - Click the Terms link in the navbar (navigates to
/terms) - Click the Pricing link in the navbar
- Observe the resulting URL
Expected Behavior
- Clicking Pricing from any page should navigate to: /#pricing
- The browser should load the home page and scroll to the Pricing section.
Actual Behavior
-
From
/terms, the URL becomes: /terms#pricing -
From
/privacy, the URL becomes: /privacy#pricing -
The page does not navigate to the home page, and the Pricing section is not visible.
🧠 Root Cause
The navbar uses a relative hash anchor, which resolves against the current route instead of the root path.
File: components/navbar.tsx
Lines: 72–74
<Link
href="#pricing"
className="text-xs text-muted-foreground hover:text-foreground transition-colors"
>
Pricing
</Link>Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working