useFallbackTitle() · Nuxt SEO Utils · Nuxt SEO

-
-
-
-

[1.4K](https://github.com/harlan-zw/nuxt-seo)

[Nuxt SEO on GitHub](https://github.com/harlan-zw/nuxt-seo)

SEO Utils

-
-
-
-
-
-
-
-
-
-

Search…```k`` /`

v8.1.7

- Playgrounds
- [Discord Support](https://discord.com/invite/275MBUBvgP)

### Nuxt API

-
-
-
-

Nuxt API

# useFallbackTitle()

[Copy for LLMs](https://nuxtseo.com/docs/seo-utils/api/fallback-title.md)

## [Usage](#usage)

Use the auto-imported `useFallbackTitle` composable to access the fallback title that the module generates for the current page.

The title is resolved in this order:

1. Error page title (e.g., `404 - Page not found`) when a 404 or 500 error is active
2. `route.meta.title` if set via `definePageMeta()`
3. `pages.{routeName}.title` i18n translation key (when `@nuxtjs/i18n` is installed)
4. Title-cased last URL path segment (e.g., `/about-us` becomes `About Us`)

```
const title = useFallbackTitle()
// Ref<string | null>
```

This is useful when building custom modules or components that need access to the same fallback title logic used internally by the module.

## [Return Value](#return-value)

- Type: `ComputedRef<string| null>`

Returns `null` for the root path (`/`) when no `route.meta.title` is set.

[Edit this page](https://github.com/harlan-zw/nuxt-seo-utils/edit/main/docs/content/3.api/5.fallback-title.md)

[Markdown For LLMs](https://nuxtseo.com/docs/seo-utils/api/fallback-title.md)

Did this page help you?

On this page

- [Usage](#usage)
- [Return Value](#return-value)

[GitHub](https://github.com/harlan-zw/nuxt-seo) [ Discord](https://discord.com/invite/275MBUBvgP)

###

-
-

Modules

-
-
-
-
-
-
-
-
-

###

-
-
-

###

Nuxt

-
-
-
-
-

Vue

-
-
-
-
-
-
-
-

###

-
-
-
-
-
-
-
-
-
-

Copyright © 2023-2026 Harlan Wilton - [MIT License](https://github.com/harlan-zw/nuxt-seo/blob/main/license) · [mdream](https://mdream.dev)