On 23 Sep 2015 at 09:55:29, Bryn Jeffries
(bryn.jeffr...@sydney.edu.au(mailto:bryn.jeffr...@sydney.edu.au)) 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
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users