web.url
web.url
Function
Read the current request path.
Syntax
web.url
Parameters
No parameters.
Return value
| Type | Description |
|---|---|
| String | Returns the path string without the leading /. |
Example
// Request: GET /docs/index result = web.url // Output: docs/index print result
Notes
- Root path / returns an empty string.