path. Getting the path of the page   [3.5.0]

$request:path

Returns the path from the URI, that is, the decoded part of the URI starting with the / character and ending before the ? character (if present).

Example
Let's assume, a visitor requests the following page:

http://www.mysite.ru/some%20news/articles.html?year=2000&month=05&day=27

Then
$request:path

will return:
/some news/articles.html


Copyright © 1997–2025 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 03.01.2025