Yeah, I tried that. Unfortunately, the following returns 200/OK instead of a
302:
let $new-page := "redirectee.xqy"
return
(xdmp:set-response-code( 302, "Moved permanently" ),
xdmp:redirect-response( $new-page ))
From: [email protected]
[mailto:[email protected]] On Behalf Of Nuno Job
Sent: Tuesday, November 30, 2010 2:07 PM
To: General MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] 302 redirect response
Try xdmp:set-response-code()
http://developer.marklogic.com/pubs/3.2/apidocs/AppServerBuiltins.html#set-response-code
Nuno
On Tue, Nov 30, 2010 at 8:56 PM, Stewart Shelline
<[email protected]<mailto:[email protected]>> wrote:
Is there any way to use xdmp:redirect-response() to send a response code of
302? Or is there a better way to do this?
NOTICE: This email message is for the sole use of the intended recipient(s) and
may contain confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all copies of
the original message.
_______________________________________________
General mailing list
[email protected]<mailto:[email protected]>
http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general