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

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

## [Hooks](/themes/sdk/reference/routing/hooks) [#hooks]

| Name | What it is |
| --- | --- |
| [`useRouter`](/themes/sdk/reference/routing/hooks#userouter) | The router, for moving the visitor from code. |
| [`usePathname`](/themes/sdk/reference/routing/hooks#usepathname) | The path of the current page. |
| [`useSearchParams`](/themes/sdk/reference/routing/hooks#usesearchparams) | The query string of the current page. |
| [`usePageParams`](/themes/sdk/reference/routing/hooks#usepageparams) | The params the current theme page's route captured. |
| [`useSitePage`](/themes/sdk/reference/routing/hooks#usesitepage) | The merchant's site page the current page renders. |
| [`useNotFoundPage`](/themes/sdk/reference/routing/hooks#usenotfoundpage) | The not-found page the visitor is on, for the section that draws it. |

## [Parts](/themes/sdk/reference/routing/parts) [#parts]

| Name | What it is |
| --- | --- |
| [`Link`](/themes/sdk/reference/routing/parts#link) | A link inside or out of the store that navigates without a full page load where it can. |

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

| Name | What it is |
| --- | --- |
| [`redirect`](/themes/sdk/reference/routing/functions#redirect) | Stops rendering the page and sends the visitor to another one. |
| [`notFound`](/themes/sdk/reference/routing/functions#notfound) | Stops rendering the page and shows the store's not-found page. |
| [`pageHref`](/themes/sdk/reference/routing/functions#pagehref) | The URL of a site page. |

## [Types](/themes/sdk/reference/routing/types) [#types]

| Name | What it is |
| --- | --- |
| [`LinkProps`](/themes/sdk/reference/routing/types#linkprops) | Props of [`Link`](/themes/sdk/reference/routing/parts#link). |
| [`Router`](/themes/sdk/reference/routing/types#router) | Navigation actions for code that moves the visitor without a link. |
| [`PageParams`](/themes/sdk/reference/routing/types#pageparams) | The params a theme page's route captured, such as `slug`; a catch-all's rest is under `$`. |
| [`SitePageRef`](/themes/sdk/reference/routing/types#sitepageref) | A link to one of the merchant's site pages. |
| [`SitePage`](/themes/sdk/reference/routing/types#sitepage) | One of the merchant's site pages, with its place among the others. |
| [`NotFoundPageTexts`](/themes/sdk/reference/routing/types#notfoundpagetexts) | The store's wording on its not-found page, in the page language. |
| [`NotFoundPage`](/themes/sdk/reference/routing/types#notfoundpage) | What the store's not-found page shows: its wording and the categories it suggests instead. |

<AnchorRedirect to={{"hooks":"/themes/sdk/reference/routing/hooks","userouter":"/themes/sdk/reference/routing/hooks","usepathname":"/themes/sdk/reference/routing/hooks","usesearchparams":"/themes/sdk/reference/routing/hooks","usepageparams":"/themes/sdk/reference/routing/hooks","usesitepage":"/themes/sdk/reference/routing/hooks","usenotfoundpage":"/themes/sdk/reference/routing/hooks","parts":"/themes/sdk/reference/routing/parts","link":"/themes/sdk/reference/routing/parts","functions":"/themes/sdk/reference/routing/functions","redirect":"/themes/sdk/reference/routing/functions","notfound":"/themes/sdk/reference/routing/functions","pagehref":"/themes/sdk/reference/routing/functions","types":"/themes/sdk/reference/routing/types","linkprops":"/themes/sdk/reference/routing/types","router":"/themes/sdk/reference/routing/types","pageparams":"/themes/sdk/reference/routing/types","sitepageref":"/themes/sdk/reference/routing/types","sitepage":"/themes/sdk/reference/routing/types","notfoundpagetexts":"/themes/sdk/reference/routing/types","notfoundpage":"/themes/sdk/reference/routing/types"}} />
