Vincent
wrote:
{{velocity}}
#if("$!{request.xpage}" != 'plain')
$response.sendRedirect() #else
Hello world!
#end
{{/velocity}}
Thanks again for the quick response. That's a good suggestion, but I think
loses any query parameters that I'd passed to the page to use in the script.
This is just an example, you can of course keep the query parameters passed
:) You have them in $request.queryString.
Aha, good point. Probably sending a 307 would trigger re-sending the POST data, too.
$response.setStatus(307);
$response.setHeader("Location", $doc.getURL('view',
'xpage=plain'));
I will check it out later.