Bitrix Site Manager

GetPagePath

string
GetPagePath(
 string page = false
)

The function GetPagePath returns path to the page relative to the root.

URL relative to root with parameters can be passed to the function. In this case, the function returns path to the page No parameters.

If a path without a file is passed to the function (for example: /en/about/), the function attempts to determine a directory index file. For example, if a directory index file is index.php, the return value is /en/about/index.php.

Note
The algorithm used to find an index file is outlined in the topic on the GetDirIndex function.

Parameters

ParameterDescription
page Page whose path is to be returned. If false, the path to the current page is returned.
Optional. False by default.

See Also