Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Major parts of Canonical's website lacks social metadata card preview images #1101

Open
johnlettman opened this issue Oct 31, 2023 · 4 comments
Assignees

Comments

@johnlettman
Copy link
Contributor

johnlettman commented Oct 31, 2023

Advanced apologies for the nitpicking issue.

Summary

Canonical currently uses a subset of both Twitter and OpenGraph social metadata across the site:

    <meta name="twitter:account_id" content="169015850">
    <meta name="twitter:site" content="@canonical">
    <meta property="og:type" content="website">
    <meta property="og:url" content="https://canonical.com/">
    <meta property="og:site_name" content="Canonical">

However, the metadata lacks information regarding the image when rendering a social media card linking to the site. As a result, Canonical links appear with an image pulled from background elements or with a "missing image" placeholder.

This may cause a slightly negative perception of the link or downplay its visibility in the social media timeline, especially in the case of adverts to open positions, blog posts, or information about Canonical, its services, and its products.

Process

  1. Open either the Twitter tweet composer or LinkedIn post inspector.
  2. Paste a Canonical URL into the composer/inspector.
  3. Inspect results.

Expected result

Links to Canonical should be rendered with contextual previews, whether they are product logos, names of the page next to the Canonical logo, or static compositions in the Canonical theme.

Suggestion actions

The rendered HTML should include the following tags:

<meta name="twitter:image" content="URL to the image">
<meta property="og:image" content="URL to the image">

In my opinion, the homepage should take precedence, with product pages probably following behind. All of these display with a variation of the following background element and appear broken:
image

Screenshot

Canonical pages

LinkedIn:
A test of a Canonical webpage in the LinkedIn card inspector demonstrating an irrelevant image chosen for the preview image.

Twitter:
A test of a Canonical webpage in the Twitter tweet composer showing no preview image selected.

vs. OpenStack pages

LinkedIn:
A test of an OpenStack webpage in the LinkedIn card inspector demonstrating a preview image.

Twitter:
A test of an OpenStack webpage in the Twitter tweet composer demonstrating a preview image.

Other views of the problem

'canonical.com' in the LinkedIn post composer. 'canonical.com/careers' in the LinkedIn post composer. 'canonical.com/partners' in the LinkedIn post composer. 'canonical.com/projects' in the LinkedIn post composer.
@johnlettman johnlettman changed the title Canonical's website lacks social metadata card preview images Major parts of Canonical's website lacks social metadata card preview images Oct 31, 2023
@johnlettman
Copy link
Contributor Author

johnlettman commented Oct 31, 2023

Also noteworthy is the repetition of Canonical in the social metadata for the homepage here:

    <meta name="twitter:title" content="Canonical | Trusted open source for enterprises | Canonical">
    <meta property="og:title" content="Canonical | Trusted open source for enterprises | Canonical">

It occurs here due to the title including the first Canonical | portion:

<meta name="twitter:title" content="{{ self.title() }} | Canonical">
<meta property="og:title" content="{{ self.title() }} | Canonical">

@johnlettman
Copy link
Contributor Author

In the case of the careers page, there should be this image:
Canonical careers page social media preview image, two people smiling with a Canonical logomark.

However, it appears this templating isn't rendering:

{% set current_path = url_for(request.endpoint, **request.view_args) %}
{% if "/careers" in current_path %}
<meta name="twitter:image" content="https://assets.ubuntu.com/v1/c17ef7b4-careers-meta-image-resized.png">
<meta property="og:image" content="https://assets.ubuntu.com/v1/c17ef7b4-careers-meta-image-resized.png">
{% endif %}

A screenshot of the LinkedIn post composer showing the desired image for the Canonical careers page not rendering as expected.

@akbarkz akbarkz closed this as completed Jan 11, 2024
@akbarkz akbarkz reopened this Jan 11, 2024
@lizzochek lizzochek self-assigned this Jan 25, 2024
@carkod
Copy link
Contributor

carkod commented Feb 9, 2024

I believe this has been fixed?

@lizzochek
Copy link
Contributor

@carkod no, we need designers to create banner images, so it was moved to backlog

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

No branches or pull requests

4 participants