# Link to resources and dispatch routes

Source: https://zotonic.com/docs/2944/link-to-resources-and-dispatch-routes

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

Language: en

Use a resource's page URL when linking to content. This lets Zotonic account for its path and language.

```django
<a href="{{ m.rsc.page_home.page_url }}">{_ Home _}</a>
```

For an application endpoint, use a named dispatch route:

```django
<a href="{% url admin %}">{_ Admin _}</a>
```

Do not add separate normal content routes for each language. Configure the resource and language support instead. Avoid building internal URLs by joining strings: escaping, optional arguments, and language prefixes belong to the dispatcher.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/2944?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/2944?language=en>)
