Group page `og:title` lowercases everything after the first letter of the Full name

AI-generated summary

A bug was reported where the og:title and twitter:title meta tags on group pages incorrectly lowercase all text after the first letter of the group’s Full name. zefoo provided an example using the group “Utah - St. George,” noting that while the page displays the name correctly, social media previews (e.g., in Slack) show “Utah - st. george” because the issue originates from Discourse’s HTML output rather than the external platform. The reporter confirmed this behavior persists in self-hosted Discourse v2026.10.0-latest +342. In response, awesomerobot acknowledged the issue, stating that the text should be preserved exactly as entered, and linked to a pending pull request (#45107) containing the fix.

What’s happening

We have a group whose Full name is set to “Utah - St. George”. On the group page itself, the name displays correctly. But when the group link is pasted into Slack, the preview shows “Utah - st. george”, with everything after the first letter in lowercase. Looking at the page source, the `og:title` and `twitter:title` tags already contain the lowercase version, so this comes from Discourse and not from Slack.

What I expected

The preview should show the Full name exactly as entered: “Utah - St. George”.

To reproduce: Create a group with a Full name that has capitals after the first letter (e.g. “Utah - St. George”), then view the page source of the group page. The `og:title` and `twitter:title` tags show only the first letter capitalized.

Version: Self-hosted, Discourse v2026.10.0-latest +342.

Screenshots shared for quick visual.

image

Yes, thanks for reporting it — we should preserve the text as entered. I have a fix incoming that will be available soon

1 Like

This topic was automatically closed after 18 hours. New replies are no longer allowed.