> ## Documentation Index
> Fetch the complete documentation index at: https://docs.median.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Link handling overview

> Understand how your app handles links inside the WebView and links that open your app, and find the guides to configure each.

Effective link handling keeps navigation predictable. Users stay in your WebView when it makes sense, use the in-app browser or an external app when needed, and open your app from email, SMS, and the web once domains and association files are set up.

## Mental model: two-link problems

| Problem | What it controls | Typical tools |
| - | - | - |
| **Inside the WebView** | Same-origin navigation, outbound links, in-app browser, and the long-press menu on links | Link handling **rules**, `median.window.open`, `median.contextMenu` |
| **Inbound app links** | Links in SMS, email, and other apps opening **your** Median app instead of Safari/Chrome for your domains | Universal Links (iOS), App Links (Android), `apple-app-site-association`, `assetlinks.json`, optional **[custom URL schemes](https://docs.median.co/docs/deep-linking#url-scheme-protocol)** |

Your website still controls ordinary `<a href>` markup and client-side routing. Median settings govern how the **native shell** routes those navigations and how the OS associates web URLs with your app.

## Key configuration features

* **Link behavior:** Define how links are handled: internal WebView, in-app browser, or external browser.
* **Deep linking and universal links:** Map `http`/`https` URLs on domains you control to open directly in your app.
* **Custom URL schemes:** Optional mobile-only link formats, such as `yourscheme://`, commonly used for authentication redirects and advanced app-opening flows.
* **Context menu:** Choose actions available when users long-press a link (for example, copy or open externally).

## Choose what to configure

Use these guides to configure the behavior you need.

> [card] [Deep linking](https://docs.median.co/docs/deep-linking)
>
> Set up Universal Links and App Links, validate association files, test
> behavior, and use custom URL schemes for advanced flows.

> [card] [Link behavior](https://docs.median.co/docs/internal-vs-external-links.md)
>
> Control whether links open in the WebView, in-app browser, or externally;
> configure rule order and URL patterns; apply runtime rules; and customize
> long-press context menu actions.


## Related topics

- [What changed in native navigation](https://docs.median.co/docs/native-navigation-changes.md)
- [Link behavior](https://docs.median.co/docs/internal-vs-external-links.md)
- [Auth0](https://docs.median.co/docs/auth0.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.