Skip to content

Fix site JSON-LD schema and canonical cascade resolution#216

Merged
aerni merged 1 commit into
mainfrom
fix/site-schema-canonical-button-group-match
Apr 30, 2026
Merged

Fix site JSON-LD schema and canonical cascade resolution#216
aerni merged 1 commit into
mainfrom
fix/site-schema-canonical-button-group-match

Conversation

@aerni
Copy link
Copy Markdown
Owner

@aerni aerni commented Apr 29, 2026

This PR fixes the site JSON-LD schema and the canonical URL being silently ignored. The button_group fieldtype augments to a LabeledValue, so the strict comparisons in siteSchema() and canonical() always fell through to their defaults. Calling ?->value() at the comparison sites unwraps the underlying string, matching the existing pattern in pageSchema(). Closes #214.

The button_group fieldtype augments to a LabeledValue, so strict
comparisons (===, match) in siteSchema() and canonical() always fell
through to their default branches: site JSON-LD never rendered (#214)
and a custom or entry canonical was silently replaced with the page's
own URL. Call ?->value() at the comparison sites, mirroring pageSchema.
@aerni aerni merged commit caa9250 into main Apr 30, 2026
17 checks passed
@aerni aerni deleted the fix/site-schema-canonical-button-group-match branch April 30, 2026 07:24
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.

Organization schema not output — site_json_ld_type match fails

1 participant