Skip to content

core/meta-title reports a 93-character title under the message "Title too short" #1765

Closed

Description

@nc9

On the public demo site nutshop.squirrelscan.com (repo squirrelscan/nut-shop) with its title-too-long fault on, one product page has the title "Classic trail mix: a generous, hand-mixed blend of nuts, seeds and dried fruit | The Nut Shop" (93 characters). Another page has a 29-character title.

A cloud audit reports one core/meta-title check, meta-title, status warn:

  • message: "Title too short (+1 more pages)"
  • items: "Page not found | The Nut Shop (29 chars)" and "Classic trail mix: a generous, hand-mixed blend of (93 chars)"

The 93-character title is listed under "Title too short". Both problems share one check name, and the aggregated message is the first page's message, so the too-long title is described as the opposite of what it is. A reader, or an agent writing a fix from the report, is told to lengthen a title that needs shortening.

This is probably not limited to this rule: any check name that carries more than one message will show the first page's message for all of them once pages are aggregated.

Expected: too short and too long are reported as separate checks (or one check whose message covers both), and each item says which it is.

Acceptance Criteria

  • A title over the maximum length is reported as too long, with its length and the maximum, in a check or message distinct from titles that are too short.
  • Each item label says which problem it has ("93 chars, over 75"), so the item is correct even when read without the message.
  • An audit with one too-short and one too-long title reports both correctly (test).
  • The PR lists the other rules where one check name carries opposite or unrelated messages (for example description length, word count) and either fixes them the same way or files a follow-up with the list.
  • The rule's docs page names the check names and messages as shipped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugrulessize: S

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions