Skip to content

Fixed link preview#269

Merged
khoroshevskyi merged 2 commits intomasterfrom
dev
Apr 20, 2026
Merged

Fixed link preview#269
khoroshevskyi merged 2 commits intomasterfrom
dev

Conversation

@khoroshevskyi
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings April 20, 2026 16:25
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 20, 2026

Deploying bedhost-ui with  Cloudflare Pages  Cloudflare Pages

Latest commit: 35d5305
Status: ✅  Deploy successful!
Preview URL: https://98c5955f.bedhost.pages.dev
Branch Preview URL: https://dev.bedhost.pages.dev

View logs

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the site’s default social preview metadata to use a PNG image (instead of the current SVG) to improve link preview compatibility across crawlers/social platforms.

Changes:

  • Switch default OG image URL in the Cloudflare Worker to bedbase_web_preview.png.
  • Switch default og:image and twitter:image in index.html to bedbase_web_preview.png.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
ui/worker.ts Updates the worker’s default OG image URL used for crawler-specific HTML on dynamic routes.
ui/index.html Updates default Open Graph / Twitter image URLs for the SPA entry page.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ui/worker.ts
const SITE_URL = 'https://bedbase.org';
// Current OG image is an SVG; use a 1200x630 PNG here if one is added for broader social preview compatibility
const OG_IMAGE = `${SITE_URL}/bedbase_web.svg`;
const OG_IMAGE = `${SITE_URL}/bedbase_web_preview.png`;
Copy link

Copilot AI Apr 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OG_IMAGE now points to /bedbase_web_preview.png, but that file does not exist under ui/public/ (only bedbase_web.svg is present). Unless this PNG is being added/hosted elsewhere as part of the deployment, crawlers will get a broken og:image/twitter:image URL. Add the PNG to the static assets (e.g., ui/public/) or update the URL to an asset that is actually shipped.

Suggested change
const OG_IMAGE = `${SITE_URL}/bedbase_web_preview.png`;
const OG_IMAGE = `${SITE_URL}/bedbase_web.svg`;

Copilot uses AI. Check for mistakes.
Comment thread ui/index.html
<meta property="og:url" content="https://bedbase.org/" />
<meta property="og:image" content="https://bedbase.org/bedbase_web.svg" />
<meta property="og:image" content="https://bedbase.org/bedbase_web_preview.png" />
<meta name="twitter:card" content="summary" />
Copy link

Copilot AI Apr 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

twitter:card is still set to summary even though an explicit preview image is provided. This is inconsistent with the worker/SEO component (which use summary_large_image) and may prevent the large image from rendering in Twitter/X previews for the homepage. Consider switching to summary_large_image here as well.

Suggested change
<meta name="twitter:card" content="summary" />
<meta name="twitter:card" content="summary_large_image" />

Copilot uses AI. Check for mistakes.
@khoroshevskyi khoroshevskyi merged commit dd05a5f into master Apr 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants