|
Whitebeam Template Reference Documentation
|
System Template
env.Path()
Return the path from the requested page
Syntax
string = rb.page.env.Path(realReq)
Parameters
The 'env.Path' method takes 1 parameter:
Name | Type/Value | Range/Length | Description | realReq | bool | | Optional.
Set to 'true' to retrieve information about the original request where this is an error page handler.
|
Results
The 'env.Path' method returns string:
Type/Value | Range/Length | Description |
string |
  | |
Remarks Returns the resolved portion of the URL that has been requested by the client. Modified behaviour from Whitebeam 0.9.19 onwardsBy default the presentation serves up information about the page actually being served. If the single parameter
is present and has a value of 'true' then the engine returns information about the page requested by the client.
The only situation in which these two are different is in the case of an error handler page (eg NotFound.rhtm).
In this case passing no parameter would simply return information about the NotFound.rhtm error page, which is
generally not very useful. Passing 'true' as a paramter will tell the handler about which page was actaully requested by the
server. |
|
(loadtime : 84ms) |