Extract route information from a URL path.
Returns route matches in a list of dictionaries. Route matches have three keys;
data
is the url data (as returned in .url
), targets
is a list of element references,
name
is the name of the matching URL.
If app
is provided, this tag will return the first url route from the given app.
<trace path=".request.path" dst="matches"/>
name | purpose | type | required? | default | choices |
---|---|---|---|---|---|
app |
Application name | text | No | ||
method |
HTTP method | text | No | "GET" |
|
name |
Route name to find | text | No | ||
path |
URL path to parse | expression | Yes | ||
server |
Server containing URL routes | expression | No | .server |
name | purpose | type | required? | default | choices |
---|---|---|---|---|---|
dst |
Destination | reference | No | ||
if |
Conditional expression | expression | No | yes |
|
value |
Value | expression | No | None |