# url

Source: https://zotonic.com/docs/2195/url

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

Language: en



Generates the relative URL for the given dispatch information.

An *relative URL* is an URL that excludes the protcol and hostname. For example `/foo/bar`.

For example, generate a url for the dispatch rule `home` with an extra argument `hello`:

```django
{{ {home hello="world"}|url }}
```

This is similar to:

```django
{% url home hello="world" %}
```

Difference between the tag and the filter is that the filter can be used in expressions or with passed values.

License: 

Attribution: 

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