Loading TOC...

MarkLogic 12 EA 1 Product Documentation
xdmp.getUrlRewriterPath

xdmp.getUrlRewriterPath() as String

Summary

Returns the URL of the URL rewriter handler for this application server. An empty string is returned if there is no rewrite handler.

Usage Notes

This function is useful for implementing a rewrite handler where you may want to resolve a location relative to the rewrite handler rather than to the specific request. This may be the case if the rewrite handler is acting as a delegator to known modules.

Example

fn.resolveUri("special-handler.xqy", xdmp.getUrlRewriterPath());

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.