Hi Ludovic, I try the redirection but it looks that it doesn't work with XWiki 0.980 I've a page "Space1.PageA" where I write only $response.sendRedirect($xwiki.getURL("Space2.WebHome")) With Firefox 2, I receive an empty page. With IE 6, I'm redirected to "Space3.WebHome". Note that "Space3.WebHome" is the parent of "Space2.WebHome" Roland Bauer wrote on 23/11/2006 13:02:
Hi Ludovic,
thanks for the answers ... (for my comments, see below)
Ludovic Dubost wrote:
3) Can I have redirects to another page (not URLs)? Like #REDIRECT [[pagename]] in MediaWiki.
$response.sendRedirect("PageName") if it is in the same space. It is better to use
$response.sendRedirect($xwiki.getURL("SpaceName.PageName"))
That works fine ... but: How can I edit the redirect later? In MediaWiki there is displayed an information: "(Redirected from Usa)" ... and you can click on "Usa" and edit the page (i. e. the redirect)
-- Reclaim Your Inbox! http://www.mozilla.org/products/thunderbird