# getUrl

Resolves a path or URL value against an absolute origin.

## Signatures

```ts
export declare const getUrl: (origin: string, urlOrPath: string | URL) => URL;
```

## Why

Provider adapters need one URL-normalization rule before computing `sameDocument` or committing
history.

## Ownership and lifetime

This synchronous helper acquires no resources. Native `URL` construction errors are thrown;
provider code uses its internal Effect wrapper when a `NavigationError` channel is required.

## Examples

```ts
import { getUrl } from "@typed/navigation/_core"

const url = getUrl("https://example.com", "/account")
```
