Vincent wrote:
{{velocity}}
#if("$!{request.xpage}" != 'plain')
$response.sendRedirect($doc.getURL('view', 'xpage=plain')) #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.
It's looking like I'll just have to include the extra parameter for now. I think
I'm pushing against the way things are meant to be done in XWiki, but I don'
really have time to align things better at present.
Thanks,
Bryn