Loading TOC...

xdmp.getOriginalUrl

xdmp.getOriginalUrl() as String

Summary

Returns the portion of the URL following the host_name:port_number. The output does not include any fragment identifier supplied with the URL (that is, it does not include the # sign or anything following the # sign). Note that when a URL rewriter is used, this function returns the URL before rewriting occurs. To get the URL after rewriting occurs, use xdmp:get-request-url.

Example

xdmp.getOriginalUrl();
=> "/example.xqy?name=foo&year=2006"

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy