Flash-Fathom-AI icon indicating copy to clipboard operation
Flash-Fathom-AI copied to clipboard

Missing pages

Open Crystlfly opened this issue 1 year ago • 4 comments

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 page
  • src/app/pricing/page.tsx — Pricing page
  • src/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

  1. Update src/middleware.ts to make /features, /pricing, /about, and /contact publicly accessible
  2. Use Clerk's createRouteMatcher to define public routes
  3. Test that authenticated users can also access these pages normally
  4. Verify all navigation links in src/components/Navbar.tsx point 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

Crystlfly avatar Aug 16 '25 16:08 Crystlfly

Bro have you actually used flashfathom ? Have you visited the website it right there!

Suraj-kumar00 avatar Aug 16 '25 18:08 Suraj-kumar00

Well bro if you think it's good then okay that's nice. But not everyone likes signing up just to see these pages.

Crystlfly avatar Aug 16 '25 18:08 Crystlfly

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!!!

Suraj-kumar00 avatar Aug 16 '25 18:08 Suraj-kumar00

Hi @Crystlfly, Is there any update?

Suraj-kumar00 avatar Aug 21 '25 06:08 Suraj-kumar00