Replies: 1 comment
-
|
PR is up: #1957 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Issue #1518 (milestoned 1.0) describes the SEO-panel footgun and lists three suggestions. Suggestion 1 (docs gotcha) is covered by the reporter's PR #1519 and our #1900. This discussion tracks suggestion 2, the ergonomic helper:
Proposed design (implementation ready)
Two new optional fields on
SeoMetaOptions:defaultTitle— priority: SEO panel title >defaultTitle>data.titledefaultDescription— priority: SEO panel description >defaultDescription>data.excerptEditor-set panel values always win, so the panel stays authoritative; the defaults only replace the hard-coded
data.title/data.excerptfallbacks. Purely additive — existing callers are unaffected. ThesiteTitlesuffix applies to the default title like any other page title.This removes the last reason to hand-roll
<title>on a page with computed titles, which is exactly the pattern that bypasses the panel (includingnoindex) silently.Suggestion 3 (dev-mode warning when
data.seois set but never read) is intentionally not part of this: it needs render-path tracking state and seems better discussed separately if the docs + helper don't defuse the footgun enough.PR incoming, linked here.
Beta Was this translation helpful? Give feedback.
All reactions