Wiki source code of Hide the View Action in URLs

Last modified by Eleni Cojocariu on 2026/11/16 18:40

Show last authors
1 Make XWiki accept and generate URLs without their ##/view/## action segment, the last of the three parts described in [[Short URLs>>doc:documentation.xs.admin.urls.short-urls.WebHome]].
2
3 1. Set ##xwiki.showviewaction## to ##0## in ##xwiki.cfg##, the key described on [[URL Configuration Properties>>doc:documentation.xs.admin.urls.short-urls.properties.WebHome]].(((
4 {{code language="none"}}
5 xwiki.showviewaction=0
6 {{/code}}
7 )))
8 1. Restart XWiki.
9 1. Open any page and read its URL. The action segment is gone, and a URL that still carries it is accepted as before.(((
10 {{code language="none"}}
11 before http://server.com/bin/view/Sandbox/WebHome
12 after http://server.com/bin/Sandbox/WebHome
13 {{/code}}
14 )))

Get Connected