Skip to content

findPageHeadline() can return a non-string value and surface [object Object] in Docus headers #3754

@onmax

Description

@onmax

Environment

  • @nuxt/content: 3.12.0
  • docus: 5.8.1
  • nuxt: 4.4.2

Reproduction

  1. Create a fresh Docus app.
  2. In content/1.getting-started/.navigation.yml, set an unquoted title containing : :
title: Getting Started: Basics
icon: false
  1. Run a static build:
pnpm install
pnpm exec nuxt generate --extends docus
  1. Open any child page in that section, for example /getting-started/introduction.

Actual behavior

The page headline renders as [object Object].


Docus could defensively coerce the headline before rendering, but the contract mismatch appears to start in @nuxt/content.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions