Wiki source code of Hide the View Action in URLs
Last modified by Eleni Cojocariu on 2026/11/16 18:40
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
![]() |
6.2 | 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.1 | 2 | |
![]() |
6.4 | 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]].((( |
![]() |
2.1 | 4 | {{code language="none"}} |
![]() |
5.1 | 5 | xwiki.showviewaction=0 |
![]() |
2.1 | 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 | ))) |
