Missing pages
Missing Pages – Features, Pricing, and Contact Routes
Describe the bug Clicking on Features, Pricing, or Contact in the navbar redirects to the sign-in page instead of showing the actual content. Unauthenticated users should be able to view these public informational pages.
Root Cause Analysis The pages exist in the codebase:
src/app/features/— Features pagesrc/app/pricing/page.tsx— Pricing pagesrc/app/contact/page.tsx— Contact page
The issue is likely in src/middleware.ts which uses Clerk's clerkMiddleware(). The middleware may be protecting these routes, requiring authentication. These public pages need to be excluded from auth protection.
What Needs to Be Done
- Update
src/middleware.tsto make/features,/pricing,/about, and/contactpublicly accessible - Use Clerk's
createRouteMatcherto define public routes - Test that authenticated users can also access these pages normally
- Verify all navigation links in
src/components/Navbar.tsxpoint to correct routes
Files to Modify
src/middleware.ts— Add public route exceptions- Verify:
src/components/Navbar.tsx— Check link paths
Example Fix
import { clerkMiddleware, createRouteMatcher } from "@clerk/nextjs/server";
const isPublicRoute = createRouteMatcher([
"/",
"/features",
"/pricing",
"/about",
"/contact",
"/sign-in(.*)",
"/sign-up(.*)",
"/api/razorpay/webhook",
]);
export default clerkMiddleware((auth, req) => {
if (!isPublicRoute(req)) {
auth().protect();
}
});
Acceptance Criteria
- [ ] Features, Pricing, About, and Contact pages load without sign-in
- [ ] Authenticated users can still access these pages
- [ ] No regression in protected route behavior (generate, flashcards, etc.)
- [ ] Navigation links work correctly from the navbar
Bro have you actually used flashfathom ? Have you visited the website it right there!
Well bro if you think it's good then okay that's nice. But not everyone likes signing up just to see these pages.
Well bro if you think it's good then okay that's nice. But not everyone likes signing up just to see these pages.
yeah then you can work on that
and if you like the project don't forget to leave a star!!!
Hi @Crystlfly, Is there any update?