Skip to content

Add support for defaultTitle when title is not provided #618

@ItaiYosephi

Description

@ItaiYosephi

Describe the feature

would like to suggest adding support for a ⁠defaultTitle feature. This feature would function similarly to the ⁠defaultTitle prop in React Helmet, serving as the title when no specific ⁠<title> is provided. This would help avoid unusual titles such as ⁠ - MyApp when using the ⁠titleTemplate.

Use Case:

  • Set a ⁠defaultTitle that is used whenever a specific ⁠<title> is not set.
  • Prevents the display of incomplete or strange titles like ⁠ - MyApp.

This is an example of my use case:
https://stackblitz.com/edit/vitejs-vite-eubhm97c?file=src%2FApp.tsx

CleanShot.2025-12-22.at.11.25.50.mp4

Additional information

  • Would you be willing to help implement this feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions