# 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).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://assetstore.essentialkit.voxelbusters.com/features/deep-link-services/playmaker/use-cases/use-case-3-route-by-host-path.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
