---
title: "Variable useDataAppLocationConst"
url: "https://www.metabase.com/docs/latest/embedding/sdk/api/useDataAppLocation"
version: "65"
---

> For the complete documentation index, see [llms.txt](https://www.metabase.com/docs/llms.txt).

# Variable useDataAppLocationConst

```ts
const useDataAppLocation: () => UseDataAppLocationResult;
```

The current data-app sub-path and a `navigate` function.

Paths are relative to the data-app root: `/`, `/customers/42`, etc.
`navigate(to)` switches sub-path without a full reload.

## Returns

[`UseDataAppLocationResult`](https://www.metabase.com/docs/latest/embedding/sdk/api/UseDataAppLocationResult.md)
