Skip to content
VibeMonitor
← What we check
Check 18 · Experience

Canonical tag pointing at localhost or a preview address

How a canonical or og:url tag left on localhost or a builder's preview address sends search engines to the wrong site, plus missing favicons and headings.

On the free quick check

What it is

A canonical tag is a line in each page that tells search engines “this is the real address of this page”. The og:url tag does the same for apps that show link previews.

AI tools often fill these in while you build, with localhost or a preview address such as yourapp.lovable.app or yourapp.vercel.app, and they stay that way after you move to your own domain.

Two smaller finishing touches go with them: the little icon on the browser tab (the favicon), which is often still the template's, and a main heading (h1) on the homepage.

Why it matters

If the canonical tag names another address, search engines list that address instead of yours, or nothing at all if it is localhost. Nothing on the page looks wrong, so it can go unnoticed for months.

A blank or template icon makes the site look unfinished in every open tab and bookmark.

How VibeMonitor checks it

We read the canonical and og:url tags in your homepage, before and after its scripts run, and compare them with the address we actually opened. We look for an icon in the page or at /favicon.ico and spot common template icons. In the browser we count the homepage's main headings.

This runs on the free quick check, with no sign-up. What our scanner does and doesn't touch.

How to fix it

  1. Set each page's canonical tag to its own full https address on your live domain. Build it from your domain, not from the address you happened to be developing on.
  2. Do the same for og:url.
  3. Replace the template icon with your own, and make the main headline on your homepage an h1.
  4. Check again.

A prompt to paste into your AI tool

Works in Lovable, Cursor, Replit, Bolt or Claude Code. When VibeMonitor finds this problem on your site, the report gives you a version with your own details filled in.

Prompt to paste

Make sure every page of my app names its own live address. Set <link rel="canonical"> and og:url on each page to the full https address on my live domain, built from one setting (an environment variable for the site's address), never localhost or a preview address. Replace the template favicon with one based on my app's logo, and make sure the homepage's main headline is a single <h1>. Tell me what you changed.

Passing this check means we didn't find this particular problem. It isn't a guarantee, and it isn't legal advice. What a clean result means.

Related checks

See if your app has this problem.

Paste your app's address. The quick check is free and needs no sign-up.

Check my app