<
From version < 85.2 >
edited by Eduard Moraru
on 2017/02/27
To version < 86.1 >
edited by Eduard Moraru
on 2017/02/27
>
Change comment: Added Nested Pages document resolution details for 'view' mode.

Summary

Details

Page properties
Content
... ... @@ -51,7 +51,9 @@
51 51  
52 52  * ##http:~/~/<server>/xwiki/bin/view/Sandbox/WebHome##: Views the ##Sandbox.WebHome## page.
53 53  * ##http:~/~/<server>/xwiki/bin/view/Sandbox##: Views the ##Sandbox.WebHome## page.
54 -* ##http:~/~/<server>/xwiki/bin/view/Space1/Space2##: Views the ##Space1.Space2.WebHome## page (if the Space2 page doesn't exist. If it exists then it views the ##Space1.Space2## page).
54 +* ##http:~/~/<server>/xwiki/bin/view/Space1/Space2##: Views the ##Space1.Space2.WebHome## page (if the ##Space2## page doesn't exist. If it exists then it views the ##Space1.Space2## page).
55 +* ##http:~/~/<server>/xwiki/bin/view/Space1/Space2/##: Force to always views the ##Space1.Space2.WebHome## page (even if the ##Space2## page exists in the ##Space1## space. Note the ##/## at the end).
56 +* ##http:~/~/<server>/xwiki/bin/view/Space1/Space2?spaceRedirect=false##: Force to always view the ##Space1.Space2## terminal page (even if the ##Space1.Space2.WebHome## page exists).
55 55  
56 56  Here are some of the supported query string parameters.
57 57  
... ... @@ -96,6 +96,19 @@
96 96  * ##siblings##: {{info}}Since 7.2RC1{{/info}} display a page that lists all the children of the parent of the document. You can also add the following parameter:
97 97  ** ##displayHidden=true##: display the hidden documents (no matter what the user's configuration is)
98 98  
101 +=== Parameter: ##spaceRedirect## ===
102 +
103 +Accepted values:
104 +* ##true## (default): By default, an URL not ending in ##/## resolves to a non-terminal page, unless the equivalent terminal page already exists.
105 +* ##false##: An URL not ending in ##/## will always resolve to a terminal page.
106 +
107 +Not applicable (i.e. no effect) for top-level pages and URLs ending in ##/##.
108 +
109 +Examples:
110 +* ##http:~/~/<server>/xwiki/bin/view/Space1/Space2[?spaceRedirect=true]##: Views the ##Space1.Space2.WebHome## page (if the ##Space2## page doesn't exist. If it exists then it views the ##Space1.Space2## page).
111 +* ##http:~/~/<server>/xwiki/bin/view/Space1/Space2?spaceRedirect=false##: Force to always view the ##Space1.Space2## terminal page (even if the ##Space1.Space2.WebHome## page exists).
112 +* ##http:~/~/<server>/xwiki/bin/view/Space1[?spaceRedirect=false|?spaceRedirect=true|/]##: Will always view the ##Space1.WebHome## non-terminal page because it is a top level page and we can never have a top-level terminal page.
113 +
99 99  == Action: ##viewrev## ==
100 100  
101 101  === Parameter: ##rev## ===

Get Connected