# Follow a request to its template

Source: https://zotonic.com/docs/2940/follow-a-request-to-its-template

URI: https://zotonic.com/id/2940

Language: en

Start with the URL that gives an unexpected result. Check its hostname: Zotonic uses it to select a site before matching the site's dispatch rules.

Run `bin/zotonic dispatch garden /welcome`. Read the selected dispatch name, controller, and arguments. A template controller renders its configured template. A page controller also works with a content resource, often available as `id` in the template.

Next, inspect the active template selected for that name. Includes and category variants can select additional files from other active modules. Use [Find the template used by a page](/id/2941) to find those files. Test the actual browser request too: dispatch inspection does not reproduce every authentication, language, or response condition.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/2940?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/2940?language=en>)
