> For the complete documentation index, see [llms.txt](https://assetstore.essentialkit.voxelbusters.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://assetstore.essentialkit.voxelbusters.com/features/deep-link-services/playmaker/use-cases/use-case-3-route-by-host-path.md).

# Route by Host/Path

## Goal

Route to a screen/scene based on the incoming deep link `host` + `path` (works for both universal links and custom schemes).

## Actions Used

* `DeepLinkServicesOnUniversalLinkOpen` **or** `DeepLinkServicesOnCustomSchemeUrlOpen` (listener, persistent)
* `DeepLinkServicesGetUniversalLinkResult` **or** `DeepLinkServicesGetCustomSchemeResult` (extractor)

## Implementation Steps

1. Keep the listener action active (bootstrap scene).
2. On `receivedEvent`, call the matching `Get*Result` action and read `host` + `path`.
3. Route using PlayMaker string compares:
   * Example universal link: `https://game.com/news/patch-notes`
     * host = `game.com`
     * path = `/news/patch-notes`
   * Example custom scheme: `myapp://store/item/123`
     * host = `store`
     * path = `/item/123`

## Safety Tip

Always validate known hosts/paths before navigating (ignore unknown links).
