Skip to content

Adjust OG/twitter meta tags based on current space - #1409

Open
fbacall wants to merge 1 commit into
masterfrom
space-meta-tags
Open

fbacall wants to merge 1 commit into
masterfrom
space-meta-tags

Conversation

@fbacall

@fbacall fbacall commented Nov 26, 2026

Copy link
Copy Markdown
Member

Summary of changes

  • Adjusts various meta tags to reflect the current space

Motivation and context

Link previews in chat apps wouldn't show the space's information.

Checklist

  • I have read and followed the CONTRIBUTING guide.
  • I confirm that I have the authority necessary to make this contribution on behalf of its copyright owner and agree to license it to the TeSS codebase under the BSD license.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

An empty logo_open_graph value bypasses the fallback to the site logo, omitting both image meta tags and removing the default page’s previously configured Twitter image.

1 open issue
What changed in this PR

Updates default Open Graph and Twitter metadata to reflect the current TeSS space, so link previews show space-specific information.

Changes:

  • Uses the current space’s title, image, and description, and limits the Twitter handle to the default site.
  • Adds controller tests for default-site and space-specific metadata.
  • Modernizes the partial-render syntax in the page head.
File Description
test/​controllers/​static_controller_test.rb Adds metadata assertions for the default site and a space.
test/​config/​test_tess.yml Sets a distinct Twitter handle for test assertions.
app/​views/​layouts/​_head.html.erb Modernizes the default metadata partial-render syntax.
app/​views/​common/​_default_og.html.erb Selects preview metadata based on the current space.

Review effort: Balanced

Comment thread app/views/common/_default_og.html.erb Resolved
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