# Functions (/themes/sdk/reference/routing/functions)

```ts
import { … } from '@poltura/theme-sdk/routing';
```

## `redirect` [#redirect]

Stops rendering the page and sends the visitor to another one.

```ts
redirect(href: string): never
```

**Parameters**

- `href: string`: Where to send the visitor.

**Returns:** Never; it throws to the router.

## `notFound` [#notfound]

Stops rendering the page and shows the store's not-found page.

```ts
notFound(): never
```

**Returns:** Never; it throws to the router.

## `pageHref` [#pagehref]

The URL of a site page.

```ts
pageHref(page: SitePageRef): string
```

**Parameters**

- `page: SitePageRef`: The page to link to.

**Returns:** The page's root-relative URL.
