Per-route OG metadata via Cloudflare meta-injector#143
Merged
Conversation
…ptions
Social crawlers don't execute JS, so the react-helmet tags never reached
them — index.html had only a relative og:image pointing at the old mesh art,
and shares rendered as bare links. The static head now carries the full
og:*/twitter:* set with absolute URLs.
The share card (/og/allways-og.png, 1200x630) is rendered in the brand
language — η badge, "Any asset / to any asset.", circle line-work — from a
committed HTML template (allways-og.template.html) using the site's own
fonts, so it can be regenerated or extended per page.
Titles and descriptions move to the new positioning: "Allways — Any asset to
any asset" with the card's own subline as the description ("Choose what you
send, what arrives, and where it lands. Delivery guaranteed."), mirrored in
SEO.tsx's default image, the landing page, and the PWA manifest. The now
unreferenced public/hero mesh art (~900KB) and its dead preload are removed.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- .cloudflare/cloudflare-worker-meta-injector.js: rewrites title/og/twitter tags per route for crawlers (same pattern as gittensor-ui). /swap/:swapId gets a title like "0.10 SOL to 0.12 TAO" (plain 'to' — U+2192 tofu-boxes in some platform fonts), a description with transaction number and finalization time, and og:image pointed at the das-allways /og-image endpoint. All other routes get the brand card. - index.html: static fallback titles reduced to "Allways" — the og image itself carries the tagline now. - public/og/allways-og.png: regenerated from the new minimal brand card (headline only); template html updated to match, with a note that the satori template in das-allways is now canonical.
# Conflicts: # index.html # public/og/allways-og.png # public/og/allways-og.template.html
anderdc
approved these changes
Jul 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Dynamic link previews: sharing a swap URL now produces a card for that specific transaction instead of the generic brand image.
.cloudflare/cloudflare-worker-meta-injector.js(new): Cloudflare Worker for the all-ways.io zone, same architecture as gittensor-ui's injector. For HTML requests it rewrites<title>,og:*, andtwitter:*per route:/swap/:swapId→ title"0.10 SOL to 0.12 TAO", description"Transaction #28 · Completed in 27 seconds. The native asset, settled on the destination chain. Delivery guaranteed on Allways, Bittensor Subnet 7.",og:image→api.all-ways.io/og-image?type=swap&id=...(companion PR: entrius/das-allways#58)index.html: static fallback titles are now just "Allways" — the og image carries the taglinepublic/og/allways-og.png: regenerated to the new minimal brand card; template html updated to matchBefore / After
Before — every URL shared the same static card:
After — swap links get their own card (title:
0.00015963 BTC to 0.102 SOL):After — homepage and all other routes (title:
Allways):Wording notes
og:site_nameand the domain line already carry the brandDeploy
all-ways.io/*(for test.all-ways.io, flip the two consts at the top to the test hosts)Until the worker is live, the site keeps working exactly as today — the static tags in index.html are the crawler fallback.
Testing
Verified with a local harness: real index.html through
injectMetaTags()for/,/dashboard, and a live swap id against the prod API; all tag rewrites confirmed. Card renders checked at full size and 250px chat-thumbnail scale.