Your canonical points to staging: find the setting and fix it

A canonical tells search engines which version of a page you prefer. If your production page names a staging address, check where that value came from before changing it. Another address can be right for a duplicate page; Google can also choose a different version. Google’s canonical guidance

1. Check the live page

Check your public page, then look at its final address, HTTP response and HTML canonical.

To inspect it yourself, replace the fictional address below with a public page you operate. Run this where replacing headers.txt and page.html is safe:

page_url='https://your-site.example/pricing'
curl -sS -L --max-redirs 5 --max-time 20 \
  -D headers.txt -o page.html \
  -w 'Final URL: %{url_effective}\nHTTP status: %{http_code}\n' \
  "$page_url"

Make sure you reached the right page with a successful response. A login screen or error page can have its own canonical. In page.html, inspect actual canonical links in the HTML head, not mentions inside scripts or examples.

2. Compare the addresses

Fictional example—not a customer incident or live scan. The page is https://your-site.example/pricing, but its HTML says:

<link rel="canonical" href="https://staging.your-site.example/pricing">

If you want the production page to be the preferred version, the corrected tag would be:

<link rel="canonical" href="https://your-site.example/pricing">

A tracking URL such as https://your-site.example/pricing?campaign=release could correctly use that same tag. Check whether the pages are duplicates before treating a different address as a mistake.

Relative values can work, but Google recommends absolute URLs. Check any HTML base element too: CrawlPatch resolves relative values against that base or the final page address. Seeing /pricing alone does not tell you which host it resolved to.

3. Find the staging setting

Look in production environment values, CMS settings, templates, route metadata and hard-coded URLs. In a Next.js App Router page, this example uses metadataBase with a relative canonical:

export const metadata = {
  metadataBase: new URL('https://your-site.example'),
  alternates: { canonical: '/pricing' },
};

Adapt your existing export. Changing metadataBase will not replace an absolute staging URL set elsewhere; fix that value at its source. Next.js metadata reference

4. Fix it and check again

Correct the setting rather than adding a second canonical. Keep relevant links and sitemaps consistent with the page you want to use. Leave private and preview access controls intact.

Deploy, then check the same URL again:

Scroll sideways or use arrow keys to read every column.

Results and next steps
ResultNext step
Canonical matches the final page URLConfirm that this is the version you want.
Another addressCheck whether it is intentional; a different host is not a proven staging mistake.
Missing, multiple or invalid tagsReview the HTML and settings. Identical duplicate tags still need review; a missing tag alone does not prove an indexing failure.
Failed request or unsuccessful responseFix that first. An error page’s canonical does not establish your intended page’s canonical.

For Google’s selected canonical, check the indexed information in Search Console for a property you control. Test live URL cannot predict that choice or guarantee indexing. URL Inspection help

5. Save a check for the next release

Open your workspace, add the website and page, then choose Run first check to save a new report. After your next update, choose Check again and open Saved check history. Public reports are not imported automatically. Access and limits

Tool scope: CrawlPatch follows the page’s redirects, not its canonical destination. It reads HTML canonicals, not HTTP Link canonicals or JavaScript-generated changes. Combined declaration text is not a tag count or a separately resolved URL. A matching declaration does not prove Google indexing or rankings.

If you also find noindex, check that instruction separately.

Check this public page’s HTML canonical

CrawlPatch builds SEO checking tools. These guides explain technical observations and do not promise indexing or ranking outcomes.