Lasso Soft Inc. > Home

[ web_request->pathInfo ]

Method

The [web_request->pathInfo] method returns the path that a URL eventually get routed to. This means if a URL gets translated to a different path using a re-write rule, [web_request->pathInfo] will return the re-routed path, not the path in the original URL.

  • Syntax
web_request->pathinfo
Examples
  • Beginner

Get the path that caused the current script to load

The code below will output the path which was called to get the current script to load. For this example, assume the following URL was requested: http://www.example.com/test.lasso?id=4&type=1

Code

web_request->pathinfo

Result

/test.lasso

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft