On 23 Sep 2015 at 09:55:29, Bryn Jeffries ([email protected](mailto:[email protected])) wrote:
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.
This is just an example, you can of course keep the query parameters passed :) You have them in $request.queryString. Thanks -Vincent
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