---
title: Navigate
summary: Saves the context and redirects to another BOL application page.
status: draft
owner: SAIF IT Core Services
last_reviewed: 2026-10-12
library: BolMiddleware
reference_type: package
operation_id: OP-07
trigger: Navigate call with NavigationOptions
---

# Navigate

Consumer pages call `Navigate` to send the user to a page in another BOL application while keeping the web context. The context id travels in the `cid` query value.

| Field | Value |
| --- | --- |
| **Operation ID** | OP-07 |
| **Trigger** | `Navigate` call with `NavigationOptions` |
| **Inputs** | Target application, target page |
| **Outputs** | Redirect result with a `cid` query value |
| **Primary components** | `BolContextModel.Navigate`, `NavigationOptions.ToUrl` |
| **Entry point** | `src/BolMiddleware/Models/BolContextModel.cs` |

## Steps

1. Call [Save web context](save-web-context.md), forcing the save when the target application differs from the current application ([BR-BOLMIDDLEWARE-002](../business-rules.md#br-bolmiddleware-002-context-save-condition)).
2. Build the URL with `NavigationOptions.ToUrl(cid)` from the target application and page, appending the `cid` query value.
3. Return a redirect result to that URL.

## Process flow

The following diagram visualizes this operation's control flow.

```mermaid
flowchart TD
	Start([Navigate]) --> S1[Save web context]
	S1 --> S2[Build URL with cid]
	S2 --> EndOk([Return redirect])
```

## Failure and edge-case behavior

- `AddQueryParameter` does not URL-encode values, so a target page containing reserved characters can alter the query string.
- The redirect target is composed from caller-supplied names; see [Menu item click](menu-item-click.md) for the posted-value exposure.

## Related documentation
- [Index](../index.md)
- [Overview](../overview.md)
- [Architecture](../architecture.md)
- [Dependencies](../dependencies.md)
- [Configuration](../configuration.md)
- [Operations and processes](../operations-processes.md)
- [Business rules](../business-rules.md)
- [Security and authorization](../security-authorization.md)
- [Service registration](../service-registration.md)
- [API reference](../api/index.md)

## Sources
- src/BolMiddleware/Models/BolContextModel.cs
- src/BolMiddleware/Contracts/NavigationOptions.cs
