> For the complete documentation index, see [llms.txt](https://roudi.gitbook.io/guia-navigation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://roudi.gitbook.io/guia-navigation/using-guia/the-lore/navigator/back-handling.md).

# Back Handling

Each navigator has a `overrideBackPress` that is stateful and can be updated to allow overriding the back press. It's set to `true` by default and it [pops](/guia-navigation/using-guia/the-lore/navigator/navigation-operations.md#pop) the back stack as we click back.

We can override back press in our Composables by using `NavBackHandler`:

```kotlin
@Composable
fun HomeScreen() { 
    NavBackHandler(enabled = true) {
        // Now the navigator will not pop the back stack.
    }
}
```

You can also initialize the navigator with `overrideBackPress = false` and use your own logic for back handling based on the backstack.
