Question

Why do all my pages have the same title?

Because a single-page app is deployed with one index.html and a rewrite rule that answers every path with it. The route you see in the browser is assembled by the router after load; the document the server sends for /pricing is byte-identical to the one for /. A head-management component can set a different title per route once JavaScript runs, but crawlers and link previews read the document before that happens, so they all see the same title. The fixes are a prerender step, a framework that renders per request, or accepting one title for everything.

How to confirm this is your problem

curl -s https://your-site.com/pricing | grep "<title" and compare it with the same command on your home page. Identical output means every route is serving the same document, which also means every route shares one meta description, one set of Open Graph tags, and one canonical.

Fix one: prerender the routes

A prerender step in the build walks your route list and writes a finished HTML file per route, each with its own title and description baked in. It works on any static host and needs no server. This is the fix for Lovable, Bolt and plain Vite apps.

Fix two: render per request

Next.js and similar frameworks take metadata from the page itself, an export or generateMetadata, and write it into the HTML for each request. This is the right fix when content changes between deploys, and overkill when it does not.

The trap with fix three

Accepting one title is only survivable if you point it at your most important page and never add routes that need their own identity. It is also quietly paired with the canonical trap: if every route's document carries a canonical to the home page, a crawler is told, in the only language it reads, that your whole site is one page.

More questions

All questions →

Scan your site

Free, no account. You get the full checklist and your score.

Only scan sites you own or are authorised to scan. Free scans are limited. Terms

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.