Before Launch: Check Your Open Graph URL Against Your Canonical URL

Check your launch page’s Open Graph and canonical URLs, trace redirects and query parameters, and retest sharing previews while accounting for caches.

Published
Reading time
6 min read
Before Launch: Check Your Open Graph URL Against Your Canonical URL
On this page

If your Open Graph URL is different from your canonical URL, a launch page may have conflicting signals about which address represents it. That does not automatically mean something is broken, but it is worth investigating before you share the page widely.

This guide shows how to compare both declarations, follow redirects, and retest a public page after making changes.

Key Takeaways

  • og:url identifies the page for Open Graph sharing; the canonical link signals the preferred URL for search indexing. They serve different purposes.
  • Compare the declarations on the final page response, not just on the address you initially entered.
  • Check differences in host, path, query parameters, and redirects. Some differences are intentional, but they should be understood.
  • After fixing a mismatch, retest the public URL and account for cached previews. A metadata change may not appear immediately.

What Each URL Does

A page can declare these values in its HTML <head>:

<link rel="canonical" href="https://www.example.com/launch">
<meta property="og:url" content="https://www.example.com/launch">

The canonical link tells search engines which URL the site prefers when similar pages are available at multiple addresses. It is a signal, not a guarantee that every search engine will select that URL.

The Open Graph og:url property gives a sharing platform a URL to associate with the page’s Open Graph metadata. When the two values differ, investigate whether the preview might be associated with a different address from the one intended for search and sharing. Platforms can interpret and cache metadata differently, so a mismatch alone does not predict the exact preview or indexing outcome.

The addresses above are illustrative. Use your own publicly accessible launch page for the checks below; do not include private preview tokens or customer-specific URLs.

Advertisement

Check Whether Your Open Graph URL Is Different From Your Canonical URL

1. Start with the URL you plan to share

Open the public launch URL in a browser and note the address after the page finishes loading. Look for differences in:

  • Scheme and host: http versus https, or example.com versus www.example.com.
  • Path: /launch versus /launch/, a renamed path, or a language-specific path.
  • Query parameters: tracking parameters, campaign identifiers, or parameters that select genuinely different content.
  • Redirects: whether the shared address forwards to another address, and whether parameters are preserved.

A tracking parameter may not belong in the preferred page identity. But do not remove every parameter blindly: some parameters select meaningful content or are required by the site. Decide which public URL actually represents the page you want people to share and find.

2. Inspect the final page’s HTML

On the final page, view the page source and search for rel="canonical" and og:url. Compare their full values with the intended public URL. Check for missing or multiple conflicting declarations, and make sure both values are in the document’s <head>.

Viewing source is useful because it shows the HTML delivered in the response, rather than only the browser’s subsequently modified page. If metadata is inserted by JavaScript, a sharing crawler may not see it in the same way your browser does; check your platform’s requirements and, where possible, include the tags in the initial HTML.

Also check for a canonical URL supplied in an HTTP Link header. A conflicting header and HTML declaration deserve investigation.

3. Follow redirects and inspect the response

If you are comfortable with a terminal and have curl installed, substitute your public launch URL in this command:

curl -sSL --max-redirs 10 \
  -D headers.txt \
  -o page.html \
  'https://www.example.com/launch'

The command saves response headers, including redirect responses, to headers.txt and the final response body to page.html. Open those files locally. Review the HTTP status and Location header at each redirect, then check the final status, any Link header, and the canonical and Open Graph tags in the final HTML. A successful final page response should be the page you intended to share, not a login screen or error page.

This command is an example and was not executed for this article. If the URL contains query parameters, keep it inside quotes. Avoid putting private tokens or customer data in the command, saved files, screenshots, or debugging tools.

A normal browser or curl request may receive different content from a sharing crawler. If the public response looks correct but the preview does not, investigate crawler access, redirects, and any site rules that vary the response by client.

Advertisement

Fix and Retest the Preview

  1. Choose the intended public URL. Confirm the scheme, host, path, and any necessary query parameters with whoever manages the site.
  2. Update the metadata at its source. This might be a page template, content-management-system setting, or SEO plugin. For an ordinary single launch page, set the canonical link and og:url to the same intended absolute URL unless there is a documented reason not to.
  3. Deploy and verify the response again. Repeat the redirect and HTML checks. If several URLs redirect to the page, check the address you will actually share as well as the final destination.
  4. Retest with the sharing platform’s current inspection process. Submit only the public URL. Check the platform’s current documentation for its available inspection or refresh controls; this article could not verify Meta’s current documentation or inspector behavior.
  5. Allow for caching. An existing preview can persist after the page changes. Use any refresh option the platform currently documents, if available, and check again later. Neither a deployment nor a refresh request guarantees an immediate update.

If the declarations are correct in the final response but the preview still looks old, preserve the URL and time of your checks and investigate the platform’s cache and crawler access before repeatedly changing the metadata.

Common Mistakes

  • Checking only the initial URL. A redirect can lead to a page with different metadata or a lost query parameter.
  • Comparing only the domains. A trailing slash, changed path, or meaningful query parameter can point to a different page.
  • Fixing just one declaration. Updating og:url without reviewing the canonical link—or the reverse—can leave the mismatch in place.
  • Assuming a preview reflects the latest response. Cached information and crawler-specific responses can make a preview lag behind the page.
  • Exposing a private preview. Use a public test page, and keep preview tokens and customer-specific data out of inspector submissions and shared screenshots.

Best Practices

Keep the intended public URL consistent across your launch-page template and sharing materials. Review metadata after the final deployment, especially if the launch changes domains, paths, or redirects. Record intentional differences and their purpose so that a future editor does not accidentally undo them.

Conclusion

Before launch, compare og:url and the canonical link on the final public response, then trace any differences back through redirects and query parameters. Retest the actual sharing URL after deployment, while allowing for cached previews.

What would your domain sell for?

A free TidyURLs account unlocks the Domain Estimator. It prices a name from 191,011 real domain sales.