---
title: "useBackendPagePath"
description: "useBackendPagePath, auto-imported in the app: its options, return value and types."
canonical_url: "https://nuxt-backend.dev/docs/reference/api/use-backend-page-path"
---
# useBackendPagePath

Version: nuxt-backend 0.6.x · Tab: Reference · Kind: reference · Status: stable

Every page: [llms.txt](https://nuxt-backend.dev/llms.txt) · Skill for coding agents: [nuxt-backend](https://nuxt-backend.dev/.well-known/skills/nuxt-backend/SKILL.md)

Commands use npm; use your project's package manager.

## Type Aliases

### BackendPageKey

```ts
type BackendPageKey = 
  | "acceptInvitation"
  | "accessibility"
  | "admin"
  | "gifts"
  | "invite"
  | "keepAccount"
  | "login"
  | "pricing"
  | "privacy"
  | "profile"
  | "report"
  | "referral"
  | "security"
  | "settings"
  | "subprocessors"
  | "terms"
  | "unsubscribe"
  | "waitlist"
  | "welcome";
```

Defined in: [src/runtime/vue/composables/use-backend-page-path.ts](https://github.com/qruto/nuxt-backend/blob/main/src/runtime/vue/composables/use-backend-page-path.ts)

A ready-made page, by its key under the `pages` module option.

## Functions

### useBackendPagePath()

```ts
function useBackendPagePath(page): ComputedRef<string | null>;
```

Defined in: [src/runtime/vue/composables/use-backend-page-path.ts](https://github.com/qruto/nuxt-backend/blob/main/src/runtime/vue/composables/use-backend-page-path.ts)

Where a ready-made page lives, for a link to it: the path the module
mounted it at (the `pages` module option, else its default), in the
active locale when the app uses `@nuxtjs/i18n` (through its
`localePath`, so `/pricing` reads `/fr/pricing` under a prefix strategy).
Reactive: it follows a locale switch. `null` for a page turned off
(`pages.<key>: false`): a link to it has nowhere to go.

#### Parameters

<table>
<thead>
  <tr>
    <th>
      Parameter
    </th>
    
    <th>
      Type
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        page
      </code>
    </td>
    
    <td>
      <code>
        MaybeRefOrGetter
      </code>
      
      <<a href="#backendpagekey">
        <code>
          BackendPageKey
        </code>
      </a>
      
      >
    </td>
  </tr>
</tbody>
</table>

#### Returns

`ComputedRef`<`string` | `null`>

#### Example

```ts
const pricing = useBackendPagePath('pricing')
// <NuxtLink :to="pricing">Plans</NuxtLink>
```


## Sitemap

See the full [sitemap](https://nuxt-backend.dev/sitemap.md) for all pages.
