---
title: "Replace (no new history entry) Example"
description: "Extracted example from ctx.router"
---

# ctx.router

## Replace (no new history entry)

```ts
ctx.router.navigate('/admin', { replace: true });

ctx.router.navigate(`/admin/users/${newId}`, { replace: true });
```
